greybus: lights: remove unnecessary checks
authorRui Miguel Silva <rui.silva@linaro.org>
Wed, 17 Feb 2016 14:32:51 +0000 (14:32 +0000)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 17 Feb 2016 23:24:09 +0000 (15:24 -0800)
commit492331435465977407e43865c19e34918cd90a66
tree0f9fd243a248ccb484f568f9742fe6af411dcce1
parentc53b0b27d57cc1dff50080c911b48b2af7728dc4
greybus: lights: remove unnecessary checks

We do not need to check for channels and lights as they can never be
NULL as a big memory array elements.

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