diff options
author | Wolfram Sang <wsa-dev@sang-engineering.com> | 2016-08-25 19:39:20 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-08-30 19:17:38 +0200 |
commit | 5c47fd6166ce644d403787586eb206b910df7413 (patch) | |
tree | bc662a8cf5fd1fcc1d586d0ce680d7e812b8b9c5 /drivers/usb/misc | |
parent | 49d8ffab82342904e22f156530649faff9e6baae (diff) | |
download | op-kernel-dev-5c47fd6166ce644d403787586eb206b910df7413.zip op-kernel-dev-5c47fd6166ce644d403787586eb206b910df7413.tar.gz |
usb: misc: lvstest: 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')
-rw-r--r-- | drivers/usb/misc/lvstest.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/misc/lvstest.c b/drivers/usb/misc/lvstest.c index 9c49334..7717651 100644 --- a/drivers/usb/misc/lvstest.c +++ b/drivers/usb/misc/lvstest.c @@ -245,10 +245,8 @@ static ssize_t get_dev_desc_store(struct device *dev, int ret; descriptor = kmalloc(sizeof(*descriptor), GFP_KERNEL); - if (!descriptor) { - dev_err(dev, "failed to allocate descriptor memory\n"); + if (!descriptor) return -ENOMEM; - } udev = create_lvs_device(intf); if (!udev) { |