aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfram Sang <wsa-dev@sang-engineering.com>2016-08-25 13:39:12 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-08-30 13:17:37 -0400
commitd7f040e92fa0465ff08d2a1e46f0149d9eb65616 (patch)
tree1d9efc85594531de5679242b87aeb169768f5f1f
parenta02b55c8db5a35059fda254a7a5bddacc9fd4cef (diff)
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>
-rw-r--r--drivers/usb/misc/appledisplay.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/usb/misc/appledisplay.c b/drivers/usb/misc/appledisplay.c
index 29569ec2ee50..da5ff401a354 100644
--- a/drivers/usb/misc/appledisplay.c
+++ b/drivers/usb/misc/appledisplay.c
@@ -238,7 +238,6 @@ static int appledisplay_probe(struct usb_interface *iface,
238 pdata = kzalloc(sizeof(struct appledisplay), GFP_KERNEL); 238 pdata = kzalloc(sizeof(struct appledisplay), GFP_KERNEL);
239 if (!pdata) { 239 if (!pdata) {
240 retval = -ENOMEM; 240 retval = -ENOMEM;
241 dev_err(&iface->dev, "Out of memory\n");
242 goto error; 241 goto error;
243 } 242 }
244 243
@@ -252,8 +251,6 @@ static int appledisplay_probe(struct usb_interface *iface,
252 pdata->msgdata = kmalloc(ACD_MSG_BUFFER_LEN, GFP_KERNEL); 251 pdata->msgdata = kmalloc(ACD_MSG_BUFFER_LEN, GFP_KERNEL);
253 if (!pdata->msgdata) { 252 if (!pdata->msgdata) {
254 retval = -ENOMEM; 253 retval = -ENOMEM;
255 dev_err(&iface->dev,
256 "Allocating buffer for control messages failed\n");
257 goto error; 254 goto error;
258 } 255 }
259 256