Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1460807

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

From Wolfram Sang <wsa-dev@sang-engineering.com>
Newsgroups linux.kernel
Subject [PATCH 19/19] usb: wusbcore: wa-xfer: don't print error when allocating urb fails
Date 2016-08-11 23:30 +0200
Message-ID <s55I6-S7-5@gated-at.bofh.it> (permalink)
References <s55I6-S7-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH 19/19] usb: wusbcore: wa-xfer: don't print error when allocating urb fails Wolfram Sang <wsa-dev@sang-engineering.com> - 2016-08-11 23:30 +0200

csiph-web