Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d7f040e9 authored by Wolfram Sang's avatar Wolfram Sang Committed by Greg Kroah-Hartman
Browse files

usb: misc: appledisplay: don't print on ENOMEM



All kmalloc-based functions print enough information on failures.

Signed-off-by: default avatarWolfram Sang <wsa-dev@sang-engineering.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a02b55c8
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -238,7 +238,6 @@ static int appledisplay_probe(struct usb_interface *iface,
	pdata = kzalloc(sizeof(struct appledisplay), GFP_KERNEL);
	if (!pdata) {
		retval = -ENOMEM;
		dev_err(&iface->dev, "Out of memory\n");
		goto error;
	}

@@ -252,8 +251,6 @@ static int appledisplay_probe(struct usb_interface *iface,
	pdata->msgdata = kmalloc(ACD_MSG_BUFFER_LEN, GFP_KERNEL);
	if (!pdata->msgdata) {
		retval = -ENOMEM;
		dev_err(&iface->dev,
			"Allocating buffer for control messages failed\n");
		goto error;
	}