greybus: eliminate unneeded null check
authorAlex Elder <elder@linaro.org>
Tue, 24 May 2016 18:34:49 +0000 (13:34 -0500)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 27 May 2016 18:28:16 +0000 (11:28 -0700)
commit66394300c37e9321a913f269021b3d6c92d786ad
tree207068165730132d4bccfe4c7b6a8d05ac35829e
parentebc9e3750d3112e3a84fe65386cb0e5deb994e18
greybus: eliminate unneeded null check

Coccinelle points out that debugfs_remove_recursive() handles a null
argument properly, so there's no need to check for NULL before
making the call.  I have verified this is true of the kernel we're
now working with (arche-6.0).

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/camera.c