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>
This commit is contained in:
parent
a02b55c8db
commit
d7f040e92f
@ -238,7 +238,6 @@ static int appledisplay_probe(struct usb_interface *iface,
|
|||||||
pdata = kzalloc(sizeof(struct appledisplay), GFP_KERNEL);
|
pdata = kzalloc(sizeof(struct appledisplay), GFP_KERNEL);
|
||||||
if (!pdata) {
|
if (!pdata) {
|
||||||
retval = -ENOMEM;
|
retval = -ENOMEM;
|
||||||
dev_err(&iface->dev, "Out of memory\n");
|
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -252,8 +251,6 @@ static int appledisplay_probe(struct usb_interface *iface,
|
|||||||
pdata->msgdata = kmalloc(ACD_MSG_BUFFER_LEN, GFP_KERNEL);
|
pdata->msgdata = kmalloc(ACD_MSG_BUFFER_LEN, GFP_KERNEL);
|
||||||
if (!pdata->msgdata) {
|
if (!pdata->msgdata) {
|
||||||
retval = -ENOMEM;
|
retval = -ENOMEM;
|
||||||
dev_err(&iface->dev,
|
|
||||||
"Allocating buffer for control messages failed\n");
|
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user