mfd: viperboard: Delete an error message for a failed memory allocation in vprbrd_probe()
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>
This commit is contained in:
parent
9363be216a
commit
59f4d741b1
@ -59,10 +59,8 @@ static int vprbrd_probe(struct usb_interface *interface,
|
|||||||
|
|
||||||
/* allocate memory for our device state and initialize it */
|
/* allocate memory for our device state and initialize it */
|
||||||
vb = kzalloc(sizeof(*vb), GFP_KERNEL);
|
vb = kzalloc(sizeof(*vb), GFP_KERNEL);
|
||||||
if (vb == NULL) {
|
if (!vb)
|
||||||
dev_err(&interface->dev, "Out of memory\n");
|
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
|
||||||
|
|
||||||
mutex_init(&vb->lock);
|
mutex_init(&vb->lock);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user