Skip to contentSkip to conversation

si2168: Delete an error message for a failed memory allocation in si2168_probe()

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

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

PATCH 1/1 si2168: Delete an error message for a failed memory allocation in si2168_probe()

From: Markus Elfring <[email protected]>
Date: Fri, 1 Sep 2017 19:50:45 +0200

Omit an extra message for a memory allocation failure in this function.

This issue was detected by using the Coccinelle software.

---
 drivers/media/dvb-frontends/si2168.c | 1 -
 1 file changed, 1 deletion(-)
drivers/media/dvb-frontends/si2168.c +0 -1
index 172fc367ccaa..41d9c513b7e8 100644
@@ -697,6 +697,5 @@ static int si2168_probe(struct i2c_client *client,
 	if (!dev) {
 		ret = -ENOMEM;
-		dev_err(&client->dev, "kzalloc() failed\n");
 		goto err;
 	}
 
Signature · 1 line
2.14.1