[1/2] i2c-sh7760: Delete an error message for a failed memory allocation in sh7760_i2c_probe()

Message ID 737fe7c8-9ae3-7e19-100a-f2f3d9f2b83a@users.sourceforge.net
State New
Headers show
Series
  • i2c-sh7760: Adjustments for sh7760_i2c_probe()
Related show

Commit Message

SF Markus Elfring Feb. 2, 2018, 2:21 p.m.
From: Markus Elfring <elfring@users.sourceforge.net>
Date: Fri, 2 Feb 2018 11:46:02 +0100

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>
---
 drivers/i2c/busses/i2c-sh7760.c | 1 -
 1 file changed, 1 deletion(-)

Patch

diff --git a/drivers/i2c/busses/i2c-sh7760.c b/drivers/i2c/busses/i2c-sh7760.c
index c2005c789d2b..4d2e4d10600b 100644
--- a/drivers/i2c/busses/i2c-sh7760.c
+++ b/drivers/i2c/busses/i2c-sh7760.c
@@ -445,7 +445,6 @@  static int sh7760_i2c_probe(struct platform_device *pdev)
 
 	id = kzalloc(sizeof(struct cami2c), GFP_KERNEL);
 	if (!id) {
-		dev_err(&pdev->dev, "no mem for private data\n");
 		ret = -ENOMEM;
 		goto out0;
 	}