aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorRui Miguel Silva <rmfrfs@gmail.com>2016-09-30 19:24:33 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-10-02 15:49:26 +0200
commitdc875c77900dba5d177f9219492fd60c046feec8 (patch)
tree0a4e1543bbd3facabbdf49b7e57d9f0624a33aab /tools/perf/scripts/python/bin
parentstaging: greybus: light: fix attributes allocation (diff)
downloadlinux-dc875c77900dba5d177f9219492fd60c046feec8.tar.gz
linux-dc875c77900dba5d177f9219492fd60c046feec8.zip
staging: greybus: light: check delay_{on|off} before use
Even though we trust leds core that the pointers should be valid, we are safer to check delay_{on|off} before use. Also, this avoid a smatch warning: drivers/staging/greybus/light.c:484 gb_blink_set() warn: variable dereferenced before check 'delay_on' (see line 476) Signed-off-by: Rui Miguel Silva <rmfrfs@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions