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

usb: misc: ftdi-elan: don't print on ENOMEM

All kmalloc-based functions print enough information on failures.

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
524fd353 29a99df1

-1
-1
drivers/usb/misc/ftdi-elan.c
··· 2730 2730 ftdi->bulk_in_endpointAddr = endpoint->bEndpointAddress; 2731 2731 ftdi->bulk_in_buffer = kmalloc(buffer_size, GFP_KERNEL); 2732 2732 if (!ftdi->bulk_in_buffer) { 2733 - dev_err(&ftdi->udev->dev, "Could not allocate bulk_in_buffer\n"); 2734 2733 retval = -ENOMEM; 2735 2734 goto error; 2736 2735 }