staging: comedi: drivers: usbduxfast: don't print error when allocating urb fails
authorWolfram Sang <wsa-dev@sang-engineering.com>
Thu, 11 Aug 2016 21:23:38 +0000 (23:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Aug 2016 13:56:33 +0000 (15:56 +0200)
kmalloc will print enough information in case of failure.

Signed-off-by: Wolfram Sang <wsa-dev@sang-engineering.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/usbduxfast.c

index 10f94ec345360681ec11316d5fda6c48581afde8..608403c7586b767e4bb264300dc216d1fa0d785a 100644 (file)
@@ -946,10 +946,8 @@ static int usbduxfast_auto_attach(struct comedi_device *dev,
        }
 
        devpriv->urb = usb_alloc_urb(0, GFP_KERNEL);
-       if (!devpriv->urb) {
-               dev_err(dev->class_dev, "Could not alloc. urb\n");
+       if (!devpriv->urb)
                return -ENOMEM;
-       }
 
        devpriv->inbuf = kmalloc(SIZEINBUF, GFP_KERNEL);
        if (!devpriv->inbuf)