projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51f1741
)
usb: class: usbtmc: delete unnecessary 'out of memory' messages
author
Peter Chen
<peter.chen@freescale.com>
Tue, 14 Oct 2014 07:55:56 +0000
(15:55 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Mon, 3 Nov 2014 23:42:04 +0000
(15:42 -0800)
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>
drivers/usb/class/usbtmc.c
patch
|
blob
|
history
diff --git
a/drivers/usb/class/usbtmc.c
b/drivers/usb/class/usbtmc.c
index ec978408a2ee324bfaae685aaac40c36514cbd81..960bc089111b260569ed07ce83fe92d56f784afb 100644
(file)
--- 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;