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:
9363be2
)
mfd: viperboard: Delete an error message for a failed memory allocation in vprbrd_probe()
author
Markus Elfring
<elfring@users.sourceforge.net>
Fri, 9 Mar 2018 08:56:31 +0000
(09:56 +0100)
committer
Lee Jones
<lee.jones@linaro.org>
Wed, 16 May 2018 08:21:48 +0000
(09:21 +0100)
Omit an extra message for a memory allocation failure in this function.
This issue was detected by using the Coccinelle software.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/viperboard.c
patch
|
blob
|
history
diff --git
a/drivers/mfd/viperboard.c
b/drivers/mfd/viperboard.c
index e6b3c70aeb22cc919e0fef9f0ba8ad04cd3b56fa..e9f61262d583f2ab4160d9887d0bb6684476c9ac 100644
(file)
--- a/
drivers/mfd/viperboard.c
+++ b/
drivers/mfd/viperboard.c
@@
-59,10
+59,8
@@
static int vprbrd_probe(struct usb_interface *interface,
/* allocate memory for our device state and initialize it */
vb = kzalloc(sizeof(*vb), GFP_KERNEL);
- if (vb == NULL) {
- dev_err(&interface->dev, "Out of memory\n");
+ if (!vb)
return -ENOMEM;
- }
mutex_init(&vb->lock);