Skip to contentSkip to conversation

iio: accel: adxl367: Remove second semicolon

PATCH Applied Colin Ian King 3 participants 3 messages Mar 15, 2024 – Mar 16, 2024

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iio: accel: adxl367: Remove second semicolon

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

---
 drivers/iio/accel/adxl367.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/accel/adxl367.c +1 -1
index 210228affb80..5cf4828a5eb5 100644
@@ -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);
Signature · 1 line
2.39.2
Reviewed-by Nuno Sa on v1 1/1
#1 lore raw
Quoted 5 lines · Colin Ian King

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

---

Quoted 17 lines

 drivers/iio/accel/adxl367.c | 2 +-

 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/accel/adxl367.c +1 -1
index 210228affb80..5cf4828a5eb5 100644
@@ -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);

maintainer Applied
#2 lore raw
Quoted 8 lines · On Fri, 15 Mar 2024 12:51:07 +0100 Nuno Sá <[email protected]> wrote:
Quoted 5 lines · Colin Ian King

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

---

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

Quoted 19 lines
Quoted 18 lines

 drivers/iio/accel/adxl367.c | 2 +-

 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/accel/adxl367.c +1 -1
index 210228affb80..5cf4828a5eb5 100644
@@ -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);