mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 12:57:06 +09:00
usb: gadget: u_ether: Remove warning from gether_disconnect()
gether_disconnect() is always called before gether_connect() by the different USB ethernet functions, so this warning was firing during normal operation. Change-Id: I178cc7d1f67e9e87ac2e99c6674c4db8fcddf4a0 Signed-off-by: Mike Lockwood <lockwood@android.com>
This commit is contained in:
@@ -941,7 +941,6 @@ void gether_disconnect(struct gether *link)
|
||||
struct eth_dev *dev = link->ioport;
|
||||
struct usb_request *req;
|
||||
|
||||
WARN_ON(!dev);
|
||||
if (!dev)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user