usb: gadget: u_ether: Remove warning from gether_disconnect()
authorMike Lockwood <lockwood@android.com>
Thu, 18 Feb 2010 14:50:28 +0000 (09:50 -0500)
committerColin Cross <ccross@android.com>
Tue, 14 Jun 2011 16:09:05 +0000 (09:09 -0700)
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>
drivers/usb/gadget/u_ether.c

index 2ac1d21473253f73cdaea0b05b4b81fe027c61f1..6590501c29e53cd70d9a3e0af565f7c6a89da780 100644 (file)
@@ -943,7 +943,6 @@ void gether_disconnect(struct gether *link)
        struct eth_dev          *dev = link->ioport;
        struct usb_request      *req;
 
-       WARN_ON(!dev);
        if (!dev)
                return;