diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2017-08-26 22:06:05 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-08-27 14:47:57 +0200 |
commit | 3e7e9755c956d7d1dbe763cc62145e67d5ca32a9 (patch) | |
tree | 51b62bebe77a65a56cb73a1c3671027c6a645640 /drivers/media | |
parent | media: Staging: media: radio-bcm2048: make video_device const (diff) | |
download | linux-3e7e9755c956d7d1dbe763cc62145e67d5ca32a9.tar.xz linux-3e7e9755c956d7d1dbe763cc62145e67d5ca32a9.zip |
media: usbvision: Delete an error message for a failed memory allocation in usbvision_probe()
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>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/usb/usbvision/usbvision-video.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/media/usb/usbvision/usbvision-video.c b/drivers/media/usb/usbvision/usbvision-video.c index 756322c4ac05..b74fb2dcb6f5 100644 --- a/drivers/media/usb/usbvision/usbvision-video.c +++ b/drivers/media/usb/usbvision/usbvision-video.c @@ -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; } |