]> git.karo-electronics.de Git - linux-beck.git/commit
greybus: lights: remove unnecessary check
authorRui Miguel Silva <rui.silva@linaro.org>
Thu, 25 Feb 2016 18:05:09 +0000 (18:05 +0000)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 26 Feb 2016 00:54:11 +0000 (16:54 -0800)
commitbf9deb29e2b3c5dbc97ce559325f4faa0bad5022
tree3771414f6d8defb930ffdb62bdd81a3039d23ee3
parente915ce48bae606b79150a4d799a30037604a93ed
greybus: lights: remove unnecessary check

lights can never be NULL at that point since lights_count must be different than
zero, and we need only to validate the light_id.

Reported-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/light.c