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>
static void gb_lights_channel_release(struct gb_channel *channel)
{
- if (!channel)
- return;
-
channel->releasing = true;
gb_lights_channel_unregister(channel);
int i;
int count;
- if (!light)
- return;
count = light->channels_count;