]> git.baikalelectronics.ru Git - kernel.git/commit
leds: gpio: fix and simplify reading property "label"
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 14 Sep 2016 18:55:18 +0000 (20:55 +0200)
committerJacek Anaszewski <j.anaszewski@samsung.com>
Thu, 15 Sep 2016 14:49:42 +0000 (16:49 +0200)
commit1be71c9c7a2bfd0db77b2409fb3f3560d4aebae9
treeef7f54092b35d682c5d3ff0dcf264507aa42df10
parent99bbaae4f14f9b442de87b856dbf8fc899e3068a
leds: gpio: fix and simplify reading property "label"

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.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
drivers/leds/leds-gpio.c