Skip to contentSkip to conversation

i2c-davinci: issue timeout warning only once

PATCH New Baruch Siach 1 participant 1 message Jan 8, 2009

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

PATCH 1/1 i2c-davinci: issue timeout warning only once

When timeout occurs the i2c_davinci_wait_bus_not_busy() issues a warning. No need to do this twice.

---

drivers/i2c/busses/i2c-davinci.c +1 -3
index 5d77898..fbddc50 100644
@@ -349,10 +349,8 @@ i2c_davinci_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[], int num)
 	dev_dbg(dev->dev, "%s: msgs: %d\n", __func__, num);
 
 	ret = i2c_davinci_wait_bus_not_busy(dev, 1);
-	if (ret < 0) {
-		dev_warn(dev->dev, "timeout waiting for bus ready\n");
+	if (ret < 0)
 		return ret;
-	}
 
 	for (i = 0; i < num; i++) {
 		ret = i2c_davinci_xfer_msg(adap, &msgs[i], (i == (num - 1)));
Signature · 3 lines
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - [email protected] - tel: +972.2.679.5364, http://www.tkos.co.il -