mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 00:00:00 -04:00
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>
This commit is contained in:
parent
100e900008
commit
1e6fb9a145
1 changed files with 0 additions and 3 deletions
|
|
@ -132,9 +132,6 @@ void gb_interface_remove(struct gb_interface *intf)
|
|||
struct gb_bundle *bundle;
|
||||
struct gb_bundle *next;
|
||||
|
||||
if (WARN_ON(!intf))
|
||||
return;
|
||||
|
||||
spin_lock_irq(&gb_interfaces_lock);
|
||||
list_del(&intf->links);
|
||||
spin_unlock_irq(&gb_interfaces_lock);
|
||||
|
|
|
|||
Loading…
Reference in a new issue