[PATCH] i2c: i2c-stm32f7: fix semicolon.cocci warnings

kbuild test robot lkp at intel.com
Tue Mar 13 05:52:26 PDT 2018


From: Fengguang Wu <fengguang.wu at intel.com>

drivers/i2c/busses/i2c-stm32f7.c:995:2-3: Unneeded semicolon
drivers/i2c/busses/i2c-stm32f7.c:944:2-3: Unneeded semicolon
drivers/i2c/busses/i2c-stm32f7.c:875:2-3: Unneeded semicolon


 Remove unneeded semicolon.

Generated by: scripts/coccinelle/misc/semicolon.cocci

Fixes: 226a69fb1a70 ("i2c: i2c-stm32f7: Add initial SMBus protocols support")
CC: Pierre-Yves MORDRET <pierre-yves.mordret at st.com>
Signed-off-by: Fengguang Wu <fengguang.wu at intel.com>
---

 i2c-stm32f7.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

--- a/drivers/i2c/busses/i2c-stm32f7.c
+++ b/drivers/i2c/busses/i2c-stm32f7.c
@@ -872,7 +872,7 @@ static int stm32f7_i2c_smbus_xfer_msg(st
 	default:
 		dev_err(dev, "Unsupported smbus protocol %d\n", f7_msg->size);
 		return -EOPNOTSUPP;
-	};
+	}
 
 	f7_msg->buf = f7_msg->smbus_buf;
 
@@ -941,7 +941,7 @@ static void stm32f7_i2c_smbus_rep_start(
 		f7_msg->count = 1;
 		cr2 |= STM32F7_I2C_CR2_RELOAD;
 		break;
-	};
+	}
 
 	f7_msg->buf = f7_msg->smbus_buf;
 	f7_msg->stop = true;
@@ -992,7 +992,7 @@ static int stm32f7_i2c_smbus_check_pec(s
 	default:
 		dev_err(i2c_dev->dev, "Unsupported smbus protocol for PEC\n");
 		return -EINVAL;
-	};
+	}
 
 	if (internal_pec != received_pec) {
 		dev_err(i2c_dev->dev, "Bad PEC 0x%02x vs. 0x%02x\n",



More information about the linux-arm-kernel mailing list