projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'pci-v4.18-changes-2' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-block.git]
/
drivers
/
mfd
/
viperboard.c
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);