diff options
author | Wolfram Sang <wsa-dev@sang-engineering.com> | 2016-08-25 20:39:21 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-08-30 20:17:38 +0300 |
commit | 58e61402c7f46c792daa2bb32f4686c45bd15f90 (patch) | |
tree | 6df75824432645eb73fc12736486a8cd7ebbbb60 /drivers/usb/misc/trancevibrator.c | |
parent | 5c47fd6166ce644d403787586eb206b910df7413 (diff) | |
download | linux-58e61402c7f46c792daa2bb32f4686c45bd15f90.tar.xz |
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/usb/misc/trancevibrator.c')
-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; } |