diff options
author | Wolfram Sang <wsa-dev@sang-engineering.com> | 2016-08-25 13:39:07 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-08-30 13:17:37 -0400 |
commit | 13dcf7800594171addb343c7a00493daaab4ed97 (patch) | |
tree | bf77927c12bff3a39e7eea0a5c1a60a59e4e2490 /drivers/usb | |
parent | 2652de71c5cb4f90819d8f59887bc1099956446e (diff) |
usb: host: max3421-hcd: 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')
-rw-r--r-- | drivers/usb/host/max3421-hcd.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/usb/host/max3421-hcd.c b/drivers/usb/host/max3421-hcd.c index 2f7690092a7f..369869a29ebd 100644 --- a/drivers/usb/host/max3421-hcd.c +++ b/drivers/usb/host/max3421-hcd.c | |||
@@ -1856,15 +1856,11 @@ max3421_probe(struct spi_device *spi) | |||
1856 | INIT_LIST_HEAD(&max3421_hcd->ep_list); | 1856 | INIT_LIST_HEAD(&max3421_hcd->ep_list); |
1857 | 1857 | ||
1858 | max3421_hcd->tx = kmalloc(sizeof(*max3421_hcd->tx), GFP_KERNEL); | 1858 | max3421_hcd->tx = kmalloc(sizeof(*max3421_hcd->tx), GFP_KERNEL); |
1859 | if (!max3421_hcd->tx) { | 1859 | if (!max3421_hcd->tx) |
1860 | dev_err(&spi->dev, "failed to kmalloc tx buffer\n"); | ||
1861 | goto error; | 1860 | goto error; |
1862 | } | ||
1863 | max3421_hcd->rx = kmalloc(sizeof(*max3421_hcd->rx), GFP_KERNEL); | 1861 | max3421_hcd->rx = kmalloc(sizeof(*max3421_hcd->rx), GFP_KERNEL); |
1864 | if (!max3421_hcd->rx) { | 1862 | if (!max3421_hcd->rx) |
1865 | dev_err(&spi->dev, "failed to kmalloc rx buffer\n"); | ||
1866 | goto error; | 1863 | goto error; |
1867 | } | ||
1868 | 1864 | ||
1869 | max3421_hcd->spi_thread = kthread_run(max3421_spi_thread, hcd, | 1865 | max3421_hcd->spi_thread = kthread_run(max3421_spi_thread, hcd, |
1870 | "max3421_spi_thread"); | 1866 | "max3421_spi_thread"); |