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: NJohan Hovold <johan@hovoldconsulting.com> Signed-off-by: NRui Miguel Silva <rui.silva@linaro.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@google.com>
Showing
想要评论请 注册 或 登录