[PATCH v2 5/7] leds: gpio: fix and simplify reading property "label"

2016-09-14 Thread Heiner Kallweit
Checking for the presence of the property first isn't strictly needed as we can react on the return code of fwnode_property_read_string. Also, even if the presence of a property "label" was checked, reading a string value for it theoretically still can fail and this case isn't handled.

[PATCH v2 5/7] leds: gpio: fix and simplify reading property "label"

2016-09-14 Thread Heiner Kallweit
Checking for the presence of the property first isn't strictly needed as we can react on the return code of fwnode_property_read_string. Also, even if the presence of a property "label" was checked, reading a string value for it theoretically still can fail and this case isn't handled.