Skip to contentSkip to conversation

PM / clock_ops: Delete an error message for a failed memory allocation in __pm_clk_add()

PATCH New SF Markus Elfring 1 participant 1 message May 25, 2017

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

PATCH 1/1 PM / clock_ops: Delete an error message for a failed memory allocation in __pm_clk_add()

From: Markus Elfring <[email protected]>
Date: Thu, 25 May 2017 21:28:10 +0200

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

This issue was detected by using the Coccinelle software.

---
 drivers/base/power/clock_ops.c | 2 --
 1 file changed, 2 deletions(-)
drivers/base/power/clock_ops.c +0 -2
index 8e2e4757adcb..aa25ef4e6e5a 100644
@@ -88,8 +88,6 @@ static int __pm_clk_add(struct device *dev, const char *con_id,
 	if (con_id) {
 		ce->con_id = kstrdup(con_id, GFP_KERNEL);
 		if (!ce->con_id) {
-			dev_err(dev,
-				"Not enough memory for clock connection ID.\n");
 			kfree(ce);
 			return -ENOMEM;
 		}
Signature · 1 line
2.13.0