greybus: interface: remove defensive WARN_ON
authorJohan Hovold <johan@hovoldconsulting.com>
Mon, 7 Dec 2015 14:05:39 +0000 (15:05 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 8 Dec 2015 20:31:14 +0000 (15:31 -0500)
commit1e6fb9a1451f01f8ea092e49f27338ef9d3c7811
tree8571f51565d113108ced7645b99847402425cdf2
parent100e90000840741b630d1a369119ccb57ea4e49c
greybus: interface: remove defensive WARN_ON

Remove defensive WARN_ON testing for a NULL-interface when removing an
interface.

Every call site has just dereferenced the interface.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/interface.c