Skip to contentSkip to conversation

au0828: Delete an error message for a failed memory allocation in au0828_usb_probe()

PATCH New SF Markus Elfring 1 participant 1 message Sep 17, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

---
 drivers/media/usb/au0828/au0828-core.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/media/usb/au0828/au0828-core.c +1 -3
index cd363a2100d4..9c5c05c90e15 100644
@@ -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