]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
[media] media: usb: dvb-usb: dib0700_core: don't print error when allocating urb...
authorWolfram Sang <wsa-dev@sang-engineering.com>
Thu, 11 Aug 2016 21:03:48 +0000 (18:03 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 24 Aug 2016 11:50:15 +0000 (08:50 -0300)
kmalloc will print enough information in case of failure.

Signed-off-by: Wolfram Sang <wsa-dev@sang-engineering.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/usb/dvb-usb/dib0700_core.c

index bf890c3d9cda021a74079a0013b792858db1c45b..26797979ebce4b798f14d2aace8d5931056d99b0 100644 (file)
@@ -783,10 +783,8 @@ int dib0700_rc_setup(struct dvb_usb_device *d, struct usb_interface *intf)
        /* Starting in firmware 1.20, the RC info is provided on a bulk pipe */
 
        purb = usb_alloc_urb(0, GFP_KERNEL);
-       if (purb == NULL) {
-               err("rc usb alloc urb failed");
+       if (purb == NULL)
                return -ENOMEM;
-       }
 
        purb->transfer_buffer = kzalloc(RC_MSG_SIZE_V1_20, GFP_KERNEL);
        if (purb->transfer_buffer == NULL) {