lkml.org 
[lkml]   [2018]   [Mar]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] i2c: i2c-stm32f7: fix semicolon.cocci warnings
From: Fengguang Wu <fengguang.wu@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@st.com>
Signed-off-by: Fengguang Wu <fengguang.wu@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",
\
 
 \ /
  Last update: 2018-03-13 13:53    [W:0.113 / U:1.824 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site