Skip to contentSkip to conversation

usb: wusbcore: wa-xfer: don't print error when allocating urb fails

PATCH New Wolfram Sang 1 participant 1 message Aug 11, 2016 1 message not in the archive USB

lore
Share & tools
lore
#1 lore raw

PATCH 19/19 usb: wusbcore: wa-xfer: don't print error when allocating urb fails

In reply to a message not in the archive

kmalloc will print enough information in case of failure.

---
 drivers/usb/wusbcore/wa-xfer.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/usb/wusbcore/wa-xfer.c +1 -3
index 69af4fd9e07220..167fcc71f5f6e9 100644
@@ -2865,10 +2865,8 @@ int wa_dti_start(struct wahc *wa)
 		goto out;
 
 	wa->dti_urb = usb_alloc_urb(0, GFP_KERNEL);
-	if (wa->dti_urb == NULL) {
-		dev_err(dev, "Can't allocate DTI URB\n");
+	if (wa->dti_urb == NULL)
 		goto error_dti_urb_alloc;
-	}
 	usb_fill_bulk_urb(
 		wa->dti_urb, wa->usb_dev,
 		usb_rcvbulkpipe(wa->usb_dev, 0x80 | dti_epd->bEndpointAddress),
Signature · 1 line
2.8.1