From: Oliver Neukum Date: Fri, 20 Mar 2015 10:25:17 +0000 (+0100) Subject: cdc-acm: surpress misleading message X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6c8074e90c7350f5e38caf1e8d73e98df4115403;p=openwrt%2Fstaging%2Fblogic.git cdc-acm: surpress misleading message During the entry intro suspend a misleading message can be printed. Surpress it by checking the specific error. Signed-off-by: Oliver Neukum 0 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c index 58241ec1e91d..43cb05863fac 100644 --- a/drivers/usb/class/cdc-acm.c +++ b/drivers/usb/class/cdc-acm.c @@ -360,7 +360,7 @@ static void acm_ctrl_irq(struct urb *urb) } exit: retval = usb_submit_urb(urb, GFP_ATOMIC); - if (retval) + if (retval && retval != -EPERM) dev_err(&acm->control->dev, "%s - usb_submit_urb failed: %d\n", __func__, retval); }