diff options
author | Peter Chen <peter.chen@freescale.com> | 2014-10-14 09:55:56 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-11-04 00:42:04 +0100 |
commit | b8f2854b06fad0ff3bb3eb0fa76813f50e03da64 (patch) | |
tree | c9533e6d6542cf284733a68a1929636b4522e18b /drivers/usb/class | |
parent | usb: chipidea: otg_fsm: delete unnecessary 'out of memory' messages (diff) | |
download | linux-b8f2854b06fad0ff3bb3eb0fa76813f50e03da64.tar.xz linux-b8f2854b06fad0ff3bb3eb0fa76813f50e03da64.zip |
usb: class: usbtmc: delete unnecessary 'out of memory' messages
The memory subsystem has already had similar message for it.
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/class')
-rw-r--r-- | drivers/usb/class/usbtmc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/class/usbtmc.c b/drivers/usb/class/usbtmc.c index ec978408a2ee..960bc089111b 100644 --- a/drivers/usb/class/usbtmc.c +++ b/drivers/usb/class/usbtmc.c @@ -1104,10 +1104,8 @@ static int usbtmc_probe(struct usb_interface *intf, dev_dbg(&intf->dev, "%s called\n", __func__); data = devm_kzalloc(&intf->dev, sizeof(*data), GFP_KERNEL); - if (!data) { - dev_err(&intf->dev, "Unable to allocate kernel memory\n"); + if (!data) return -ENOMEM; - } data->intf = intf; data->id = id; |