[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220214124701.105814-1-yang.lee@linux.alibaba.com>
Date: Mon, 14 Feb 2022 20:47:01 +0800
From: Yang Li <yang.lee@...ux.alibaba.com>
To: jarkko.nikula@...ux.intel.com, jsd@...ihalf.com
Cc: andriy.shevchenko@...ux.intel.com, mika.westerberg@...ux.intel.com,
linux-i2c@...r.kernel.org, linux-kernel@...r.kernel.org,
Yang Li <yang.lee@...ux.alibaba.com>,
Abaci Robot <abaci@...ux.alibaba.com>
Subject: [PATCH -next v2 RESEND] i2c: designware: remove unneeded semicolon
Eliminate the following coccicheck warnings:
./drivers/i2c/busses/i2c-designware-amdpsp.c:172:2-3: Unneeded semicolon
./drivers/i2c/busses/i2c-designware-amdpsp.c:245:2-3: Unneeded semicolon
Reported-by: Abaci Robot <abaci@...ux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@...ux.alibaba.com>
---
--Changes in v2:
According to Jan's suggestion
Fix the same problem in check_i2c_req_sts() function.
drivers/i2c/busses/i2c-designware-amdpsp.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/i2c/busses/i2c-designware-amdpsp.c b/drivers/i2c/busses/i2c-designware-amdpsp.c
index 752e0024db03..9d37becbd846 100644
--- a/drivers/i2c/busses/i2c-designware-amdpsp.c
+++ b/drivers/i2c/busses/i2c-designware-amdpsp.c
@@ -172,7 +172,7 @@ static int check_i2c_req_sts(struct psp_i2c_req *req)
case PSP_I2C_REQ_STS_INV_PARAM:
default:
return -EIO;
- };
+ }
}
static int psp_send_check_i2c_req(struct psp_i2c_req *req)
@@ -245,7 +245,7 @@ static int psp_acquire_i2c_bus(void)
if (psp_i2c_access_count) {
psp_i2c_access_count++;
goto cleanup;
- };
+ }
status = psp_send_i2c_req(PSP_I2C_REQ_ACQUIRE);
if (status) {
--
2.20.1.7.g153144c
Powered by blists - more mailing lists