All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 19/19] usb: wusbcore: wa-xfer: don't print error when allocating urb fails
       [not found] <1470950095-25990-1-git-send-email-wsa-dev@sang-engineering.com>
@ 2016-08-11 21:22 ` Wolfram Sang
  0 siblings, 0 replies; only message in thread
From: Wolfram Sang @ 2016-08-11 21:22 UTC (permalink / raw)
  To: linux-usb; +Cc: Wolfram Sang, Greg Kroah-Hartman, linux-kernel

kmalloc will print enough information in case of failure.

Signed-off-by: Wolfram Sang <wsa-dev@sang-engineering.com>
---
 drivers/usb/wusbcore/wa-xfer.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/usb/wusbcore/wa-xfer.c b/drivers/usb/wusbcore/wa-xfer.c
index 69af4fd9e07220..167fcc71f5f6e9 100644
--- a/drivers/usb/wusbcore/wa-xfer.c
+++ b/drivers/usb/wusbcore/wa-xfer.c
@@ -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),
-- 
2.8.1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-08-11 21:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1470950095-25990-1-git-send-email-wsa-dev@sang-engineering.com>
2016-08-11 21:22 ` [PATCH 19/19] usb: wusbcore: wa-xfer: don't print error when allocating urb fails Wolfram Sang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.