diff options
author | Wolfram Sang | 2016-08-25 19:39:21 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2016-08-30 19:17:38 +0200 |
commit | 58e61402c7f46c792daa2bb32f4686c45bd15f90 (patch) | |
tree | 6df75824432645eb73fc12736486a8cd7ebbbb60 /drivers | |
parent | usb: misc: lvstest: don't print on ENOMEM (diff) | |
download | kernel-qcow2-linux-58e61402c7f46c792daa2bb32f4686c45bd15f90.tar.gz kernel-qcow2-linux-58e61402c7f46c792daa2bb32f4686c45bd15f90.tar.xz kernel-qcow2-linux-58e61402c7f46c792daa2bb32f4686c45bd15f90.zip |
usb: misc: trancevibrator: 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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/misc/trancevibrator.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/misc/trancevibrator.c b/drivers/usb/misc/trancevibrator.c index 4145314a515b..9795457723d8 100644 --- a/drivers/usb/misc/trancevibrator.c +++ b/drivers/usb/misc/trancevibrator.c @@ -95,8 +95,7 @@ static int tv_probe(struct usb_interface *interface, int retval; dev = kzalloc(sizeof(struct trancevibrator), GFP_KERNEL); - if (dev == NULL) { - dev_err(&interface->dev, "Out of memory\n"); + if (!dev) { retval = -ENOMEM; goto error; } |