mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 13:11:40 +00:00
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>
This commit is contained in:
parent
29a99df17b
commit
524fd35357
@ -2730,7 +2730,6 @@ static int ftdi_elan_probe(struct usb_interface *interface,
|
||||
ftdi->bulk_in_endpointAddr = endpoint->bEndpointAddress;
|
||||
ftdi->bulk_in_buffer = kmalloc(buffer_size, GFP_KERNEL);
|
||||
if (!ftdi->bulk_in_buffer) {
|
||||
dev_err(&ftdi->udev->dev, "Could not allocate bulk_in_buffer\n");
|
||||
retval = -ENOMEM;
|
||||
goto error;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user