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

usb: misc: appledisplay: 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
d7f040e9 a02b55c8

-3
-3
drivers/usb/misc/appledisplay.c
··· 238 238 pdata = kzalloc(sizeof(struct appledisplay), GFP_KERNEL); 239 239 if (!pdata) { 240 240 retval = -ENOMEM; 241 - dev_err(&iface->dev, "Out of memory\n"); 242 241 goto error; 243 242 } 244 243 ··· 251 252 pdata->msgdata = kmalloc(ACD_MSG_BUFFER_LEN, GFP_KERNEL); 252 253 if (!pdata->msgdata) { 253 254 retval = -ENOMEM; 254 - dev_err(&iface->dev, 255 - "Allocating buffer for control messages failed\n"); 256 255 goto error; 257 256 } 258 257