au0828: Delete an error message for a failed memory allocation in au0828_usb_probe()
Subsystems (2)
PATCH 1/1 au0828: Delete an error message for a failed memory allocation in au0828_usb_probe()
From: Markus Elfring <[email protected]>
Date: Sun, 17 Sep 2017 11:40:31 +0200
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 <[email protected]>
--- drivers/media/usb/au0828/au0828-core.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/media/usb/au0828/au0828-core.c +1 -3
@@ -583,7 +583,5 @@ static int au0828_usb_probe(struct usb_interface *interface, -if (dev =NULL ) { -pr_err ("%s() Unable to allocate memory\n" , __func__); +if (!dev)return -ENOMEM ; - }mutex_init (&dev->lock);mutex_lock (&dev->lock);
Signature · 1 line
2.14.1