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

usb: misc: cypress_cy7c63: 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
e83c06e9 d7f040e9

+1 -4
+1 -4
drivers/usb/misc/cypress_cy7c63.c
··· 79 79 /* allocate some memory for the i/o buffer*/ 80 80 iobuf = kzalloc(CYPRESS_MAX_REQSIZE, GFP_KERNEL); 81 81 if (!iobuf) { 82 - dev_err(&dev->udev->dev, "Out of memory!\n"); 83 82 retval = -ENOMEM; 84 83 goto error; 85 84 } ··· 207 208 208 209 /* allocate memory for our device state and initialize it */ 209 210 dev = kzalloc(sizeof(*dev), GFP_KERNEL); 210 - if (dev == NULL) { 211 - dev_err(&interface->dev, "Out of memory!\n"); 211 + if (!dev) 212 212 goto error_mem; 213 - } 214 213 215 214 dev->udev = usb_get_dev(interface_to_usbdev(interface)); 216 215