[05/13] i2c/i2c-nomadik: remove the redundant error message

Message ID BANLkTikO9911FW+s4qTuAg-N7ZYwftQBCw@mail.gmail.com
State Accepted
Headers show

Commit Message

Linus Walleij May 10, 2011, 11:45 p.m.
---------- Forwarded message ----------
From: Linus Walleij <linus.walleij@linaro.org>
Date: 2011/5/9
Subject: [PATCH 05/13] i2c/i2c-nomadik: remove the redundant error message
To: Ben Dooks <ben-linux@fluff.org>, linux-i2c@vger.kernel.org
Kopia: srinidhi kasagar <srinidhi.kasagar@stericsson.com>, Linus
Walleij <linus.walleij@linaro.org>


From: srinidhi kasagar <srinidhi.kasagar@stericsson.com>

The abort cause string itself is an error, so remove the redundant
explicit error message.

Signed-off-by: Srinidhi Kasagar <srinidhi.kasagar@stericsson.com>
Reviewed-by: Jonas Aberg <jonas.aberg@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
 drivers/i2c/busses/i2c-nomadik.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

--
1.7.5.1

--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/drivers/i2c/busses/i2c-nomadik.c b/drivers/i2c/busses/i2c-nomadik.c
index a02141a..dbd93b2 100644
--- a/drivers/i2c/busses/i2c-nomadik.c
+++ b/drivers/i2c/busses/i2c-nomadik.c
@@ -609,8 +609,6 @@  static int nmk_i2c_xfer(struct i2c_adapter *i2c_adap,
               if (status || (dev->result)) {
                       /* get the abort cause */
                       cause = (readl(dev->virtbase + I2C_SR) >> 4) & 0x7;
-                       dev_err(&dev->pdev->dev, "error during I2C"
-                                       "message xfer: %d\n", cause);
                       dev_err(&dev->pdev->dev, "%s\n",
                               cause >= ARRAY_SIZE(abort_causes)
                               ? "unknown reason" : abort_causes[cause]);