aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2016-09-14 20:55:18 +0200
committerJacek Anaszewski <j.anaszewski@samsung.com>2016-09-15 16:49:42 +0200
commitbec69de89bab29c739ab84ceb04ae63d6811babf (patch)
treeef7f54092b35d682c5d3ff0dcf264507aa42df10 /tools/perf/scripts/python
parentleds: gpio: simplify gpio_leds_create (diff)
downloadlinux-bec69de89bab29c739ab84ceb04ae63d6811babf.tar.gz
linux-bec69de89bab29c739ab84ceb04ae63d6811babf.zip
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>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions