greybus: fix pointless null check
authorAlex Elder <elder@linaro.org>
Tue, 24 May 2016 18:34:50 +0000 (13:34 -0500)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 27 May 2016 18:28:16 +0000 (11:28 -0700)
commitd97fca12e92d3179554baf4db42611e5fe56aeed
tree9c99f92c2a58ad2849102803ed5c177f796c3e3f
parent66394300c37e9321a913f269021b3d6c92d786ad
greybus: fix pointless null check

Coccinelle points out that a call in gb_lights_channel_free() to
flush_work() is passed which is always non-null.   Prior to the
call, there is an unnecessary check to see if that address is null.
Get rid of the test.

Signed-off-by: Alex Elder <elder@linaro.org>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/light.c