mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
hwmon: (ibmpowernv) drop unnecessary OF name NULL checks
Checking the child node names is pointless as the DT node name can never be NULL, so remove it. Cc: Jean Delvare <[email protected]> Cc: Guenter Roeck <[email protected]> Cc: Benjamin Herrenschmidt <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Michael Ellerman <[email protected]> Cc: [email protected] Cc: [email protected] Signed-off-by: Rob Herring <[email protected]> Signed-off-by: Guenter Roeck <[email protected]>
This commit is contained in:
parent
86103cffe8
commit
e9d02c6414
1 changed files with 0 additions and 6 deletions
|
|
@ -458,9 +458,6 @@ static int populate_attr_groups(struct platform_device *pdev)
|
|||
for_each_child_of_node(opal, np) {
|
||||
const char *label;
|
||||
|
||||
if (np->name == NULL)
|
||||
continue;
|
||||
|
||||
type = get_sensor_type(np);
|
||||
if (type == MAX_SENSOR_TYPE)
|
||||
continue;
|
||||
|
|
@ -589,9 +586,6 @@ static int create_device_attrs(struct platform_device *pdev)
|
|||
const char *label;
|
||||
enum sensors type;
|
||||
|
||||
if (np->name == NULL)
|
||||
continue;
|
||||
|
||||
type = get_sensor_type(np);
|
||||
if (type == MAX_SENSOR_TYPE)
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Reference in a new issue