media: usbvision: Delete an error message for a failed memory allocation in usbvision...
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 26 Aug 2017 20:06:05 +0000 (16:06 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sun, 27 Aug 2017 12:47:57 +0000 (08:47 -0400)
Omit an extra message for a memory allocation failure in this function.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/usb/usbvision/usbvision-video.c

index 756322c4ac053a86bd70cf54cad952cc12778389..b74fb2dcb6f56e2be7f7681f990604f2f439213f 100644 (file)
@@ -1495,7 +1495,6 @@ static int usbvision_probe(struct usb_interface *intf,
        PDEBUG(DBG_PROBE, "Alternate settings: %i", usbvision->num_alt);
        usbvision->alt_max_pkt_size = kmalloc(32 * usbvision->num_alt, GFP_KERNEL);
        if (usbvision->alt_max_pkt_size == NULL) {
-               dev_err(&intf->dev, "usbvision: out of memory!\n");
                ret = -ENOMEM;
                goto err_pkt;
        }