From: Mike Lockwood Date: Thu, 18 Feb 2010 14:50:28 +0000 (-0500) Subject: usb: gadget: u_ether: Remove warning from gether_disconnect() X-Git-Tag: firefly_0821_release~7613^2~820 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a83f187e9f34cd91d05b0c3016f6afb9c91ae916;p=firefly-linux-kernel-4.4.55.git 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 --- diff --git a/drivers/usb/gadget/u_ether.c b/drivers/usb/gadget/u_ether.c index 2ac1d2147325..6590501c29e5 100644 --- a/drivers/usb/gadget/u_ether.c +++ b/drivers/usb/gadget/u_ether.c @@ -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;