public inbox for linux-i2c@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next v2 RESEND] i2c: designware: remove unneeded semicolon
@ 2022-02-14 12:47 Yang Li
  2022-02-14 13:03 ` Jarkko Nikula
  0 siblings, 1 reply; 3+ messages in thread
From: Yang Li @ 2022-02-14 12:47 UTC (permalink / raw)
  To: jarkko.nikula, jsd
  Cc: andriy.shevchenko, mika.westerberg, linux-i2c, linux-kernel,
	Yang Li, Abaci Robot

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@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH -next v2 RESEND] i2c: designware: remove unneeded semicolon
  2022-02-14 12:47 [PATCH -next v2 RESEND] i2c: designware: remove unneeded semicolon Yang Li
@ 2022-02-14 13:03 ` Jarkko Nikula
  2022-02-14 14:01   ` Jan Dąbroś
  0 siblings, 1 reply; 3+ messages in thread
From: Jarkko Nikula @ 2022-02-14 13:03 UTC (permalink / raw)
  To: Yang Li, jsd
  Cc: andriy.shevchenko, mika.westerberg, linux-i2c, linux-kernel,
	Abaci Robot

Hi

On 2/14/22 14:47, Yang Li wrote:
> 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@linux.alibaba.com>
> Signed-off-by: Yang Li <yang.lee@linux.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(-)
> 
For future contributions: Technically this would be v3 rather than v2 
RESEND since you fixed the typo in commit log noted by Jan for v2.

Please use RESEND only if you'll send exactly the same version for 
instance if you didn't receive any comments for several weeks or some 
recipient was missing from Cc field.

I believe Jan will give Reviewed-by tag to this version too.

Acked-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH -next v2 RESEND] i2c: designware: remove unneeded semicolon
  2022-02-14 13:03 ` Jarkko Nikula
@ 2022-02-14 14:01   ` Jan Dąbroś
  0 siblings, 0 replies; 3+ messages in thread
From: Jan Dąbroś @ 2022-02-14 14:01 UTC (permalink / raw)
  To: Jarkko Nikula
  Cc: Yang Li, Andy Shevchenko, Mika Westerberg, linux-i2c,
	Linux Kernel Mailing List, Abaci Robot

pon., 14 lut 2022 o 14:03 Jarkko Nikula
<jarkko.nikula@linux.intel.com> napisał(a):
>
> Hi
>
> On 2/14/22 14:47, Yang Li wrote:
> > 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@linux.alibaba.com>
> > Signed-off-by: Yang Li <yang.lee@linux.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(-)
> >
> For future contributions: Technically this would be v3 rather than v2
> RESEND since you fixed the typo in commit log noted by Jan for v2.
>
> Please use RESEND only if you'll send exactly the same version for
> instance if you didn't receive any comments for several weeks or some
> recipient was missing from Cc field.
>
> I believe Jan will give Reviewed-by tag to this version too.
>
> Acked-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>

Correct.
Reviewed-by: Jan Dabros <jsd@semihalf.com>

Best Regards,
Jan

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-02-14 14:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-14 12:47 [PATCH -next v2 RESEND] i2c: designware: remove unneeded semicolon Yang Li
2022-02-14 13:03 ` Jarkko Nikula
2022-02-14 14:01   ` Jan Dąbroś

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox