From: david-b@pacbell.net Date: Fri, 12 Aug 2005 02:36:36 +0000 (-0700) Subject: [PATCH] USB: remove annoying message X-Git-Tag: v2.6.14-rc1~492^2~18^2~19 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=8f34c2883b894b9a97f07b23b5b86fd65ecd2f85;p=linux-2.6-omap-h63xx.git [PATCH] USB: remove annoying message Avoid an annoying message that can appear if devices are disconnected in the middle of a USB scatterlist operation. Message noted in http://bugzilla.kernel.org/show_bug.cgi?id=4373 (but the real issue there seems to be a SCSI level hang). Signed-off-by: David Brownell Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/core/message.c b/drivers/usb/core/message.c index 74197249c24..c47c8052b48 100644 --- a/drivers/usb/core/message.c +++ b/drivers/usb/core/message.c @@ -265,7 +265,9 @@ static void sg_complete (struct urb *urb, struct pt_regs *regs) continue; if (found) { status = usb_unlink_urb (io->urbs [i]); - if (status != -EINPROGRESS && status != -EBUSY) + if (status != -EINPROGRESS + && status != -ENODEV + && status != -EBUSY) dev_err (&io->dev->dev, "%s, unlink --> %d\n", __FUNCTION__, status);