Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: misc: sisusbvga: sisusb: 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>

authored by

Wolfram Sang and committed by
Greg Kroah-Hartman
843ac197 da4e20ff

-3
-3
drivers/usb/misc/sisusbvga/sisusb.c
··· 3084 3084 /* Allocate URBs */ 3085 3085 sisusb->sisurbin = usb_alloc_urb(0, GFP_KERNEL); 3086 3086 if (!sisusb->sisurbin) { 3087 - dev_err(&sisusb->sisusb_dev->dev, "Failed to allocate URBs\n"); 3088 3087 retval = -ENOMEM; 3089 3088 goto error_3; 3090 3089 } ··· 3092 3093 for (i = 0; i < sisusb->numobufs; i++) { 3093 3094 sisusb->sisurbout[i] = usb_alloc_urb(0, GFP_KERNEL); 3094 3095 if (!sisusb->sisurbout[i]) { 3095 - dev_err(&sisusb->sisusb_dev->dev, 3096 - "Failed to allocate URBs\n"); 3097 3096 retval = -ENOMEM; 3098 3097 goto error_4; 3099 3098 }