Linux IIO development
 help / color / mirror / Atom feed
* [PATCH][next] iio: accel: adxl367: Remove second semicolon
@ 2024-03-15  9:14 Colin Ian King
  2024-03-15 11:51 ` Nuno Sá
  0 siblings, 1 reply; 3+ messages in thread
From: Colin Ian King @ 2024-03-15  9:14 UTC (permalink / raw)
  To: Lars-Peter Clausen, Michael Hennerich, Cosmin Tanislav,
	Jonathan Cameron, linux-iio
  Cc: kernel-janitors, linux-kernel

There is a statement with two semicolons. Remove the second one, it
is redundant.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
---
 drivers/iio/accel/adxl367.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iio/accel/adxl367.c b/drivers/iio/accel/adxl367.c
index 210228affb80..5cf4828a5eb5 100644
--- a/drivers/iio/accel/adxl367.c
+++ b/drivers/iio/accel/adxl367.c
@@ -621,7 +621,7 @@ static int _adxl367_set_odr(struct adxl367_state *st, enum adxl367_odr odr)
 static int adxl367_set_odr(struct iio_dev *indio_dev, enum adxl367_odr odr)
 {
 	iio_device_claim_direct_scoped(return -EBUSY, indio_dev) {
-		struct adxl367_state *st = iio_priv(indio_dev);;
+		struct adxl367_state *st = iio_priv(indio_dev);
 		int ret;
 
 		guard(mutex)(&st->lock);
-- 
2.39.2


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

* Re: [PATCH][next] iio: accel: adxl367: Remove second semicolon
  2024-03-15  9:14 [PATCH][next] iio: accel: adxl367: Remove second semicolon Colin Ian King
@ 2024-03-15 11:51 ` Nuno Sá
  2024-03-16 14:06   ` Jonathan Cameron
  0 siblings, 1 reply; 3+ messages in thread
From: Nuno Sá @ 2024-03-15 11:51 UTC (permalink / raw)
  To: Colin Ian King, Lars-Peter Clausen, Michael Hennerich,
	Cosmin Tanislav, Jonathan Cameron, linux-iio
  Cc: kernel-janitors, linux-kernel

On Fri, 2024-03-15 at 09:14 +0000, Colin Ian King wrote:
> There is a statement with two semicolons. Remove the second one, it
> is redundant.
> 
> Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
> ---

Reviewed-by: Nuno Sa <nuno.sa@analog.com>

>  drivers/iio/accel/adxl367.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/iio/accel/adxl367.c b/drivers/iio/accel/adxl367.c
> index 210228affb80..5cf4828a5eb5 100644
> --- a/drivers/iio/accel/adxl367.c
> +++ b/drivers/iio/accel/adxl367.c
> @@ -621,7 +621,7 @@ static int _adxl367_set_odr(struct adxl367_state *st, enum
> adxl367_odr odr)
>  static int adxl367_set_odr(struct iio_dev *indio_dev, enum adxl367_odr odr)
>  {
>  	iio_device_claim_direct_scoped(return -EBUSY, indio_dev) {
> -		struct adxl367_state *st = iio_priv(indio_dev);;
> +		struct adxl367_state *st = iio_priv(indio_dev);
>  		int ret;
>  
>  		guard(mutex)(&st->lock);


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

* Re: [PATCH][next] iio: accel: adxl367: Remove second semicolon
  2024-03-15 11:51 ` Nuno Sá
@ 2024-03-16 14:06   ` Jonathan Cameron
  0 siblings, 0 replies; 3+ messages in thread
From: Jonathan Cameron @ 2024-03-16 14:06 UTC (permalink / raw)
  To: Nuno Sá
  Cc: Colin Ian King, Lars-Peter Clausen, Michael Hennerich,
	Cosmin Tanislav, linux-iio, kernel-janitors, linux-kernel

On Fri, 15 Mar 2024 12:51:07 +0100
Nuno Sá <noname.nuno@gmail.com> wrote:

> On Fri, 2024-03-15 at 09:14 +0000, Colin Ian King wrote:
> > There is a statement with two semicolons. Remove the second one, it
> > is redundant.
> > 
> > Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
> > ---  
> 
> Reviewed-by: Nuno Sa <nuno.sa@analog.com>
Thanks Colin.

oops.

Applied to the togreg-normal branch of iio.git, but note I'll not rush
this in, so will be the 6.10 merge window now.

Jonathan


> 
> >  drivers/iio/accel/adxl367.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/drivers/iio/accel/adxl367.c b/drivers/iio/accel/adxl367.c
> > index 210228affb80..5cf4828a5eb5 100644
> > --- a/drivers/iio/accel/adxl367.c
> > +++ b/drivers/iio/accel/adxl367.c
> > @@ -621,7 +621,7 @@ static int _adxl367_set_odr(struct adxl367_state *st, enum
> > adxl367_odr odr)
> >  static int adxl367_set_odr(struct iio_dev *indio_dev, enum adxl367_odr odr)
> >  {
> >  	iio_device_claim_direct_scoped(return -EBUSY, indio_dev) {
> > -		struct adxl367_state *st = iio_priv(indio_dev);;
> > +		struct adxl367_state *st = iio_priv(indio_dev);
> >  		int ret;
> >  
> >  		guard(mutex)(&st->lock);  
> 


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

end of thread, other threads:[~2024-03-16 14:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-15  9:14 [PATCH][next] iio: accel: adxl367: Remove second semicolon Colin Ian King
2024-03-15 11:51 ` Nuno Sá
2024-03-16 14:06   ` Jonathan Cameron

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