mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
staging: comedi: drivers: usbduxfast: don't print error when allocating urb fails
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>
This commit is contained in:
parent
694d0d0bb2
commit
1a55f38d63
1 changed files with 1 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue