Skip to contentSkip to conversation

iio: light: apds9960: remove unneeded semicolon

PATCH Applied [email protected] 3 participants 3 messages Oct 27, 2020 – Oct 29, 2020 IIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iio: light: apds9960: remove unneeded semicolon

From: Tom Rix <[email protected]>

A semicolon is not needed after a switch statement.

---
 drivers/iio/light/apds9960.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/light/apds9960.c +1 -1
index 9afb3fcc74e6..547e7f9d6920 100644
@@ -561,7 +561,7 @@ static int apds9960_write_raw(struct iio_dev *indio_dev,
 		}
 	default:
 		return -EINVAL;
-	};
+	}
 
 	return 0;
 }
Signature · 1 line
2.18.1
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · On Tue, Oct 27, 2020 at 1:14 PM <[email protected]> wrote:

From: Tom Rix <[email protected]>

A semicolon is not needed after a switch statement.

Quoted 21 lines
---
 drivers/iio/light/apds9960.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/light/apds9960.c +1 -2
index 9afb3fcc74e6..547e7f9d6920 100644
@@ -561,7 +561,7 @@ static int apds9960_write_raw(struct iio_dev *indio_dev,
                }
        default:
                return -EINVAL;
-       };
+       }
 
        return 0;
 }
--

2.18.1

maintainer Applied
#2 lore raw
Quoted 8 lines · On Tue, 27 Oct 2020 21:36:17 -0700 Matt Ranostay <[email protected]>…
Quoted 5 lines · On Tue, Oct 27, 2020 at 1:14 PM <[email protected]> wrote:

From: Tom Rix <[email protected]>

A semicolon is not needed after a switch statement.

Applied to the togreg branch of iio.git. I'll push that out later as testing for the autobuilders to poke at it.

Thanks,

Jonathan

Quoted 22 lines
Quoted 22 lines
---
 drivers/iio/light/apds9960.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/light/apds9960.c +1 -2
index 9afb3fcc74e6..547e7f9d6920 100644
@@ -561,7 +561,7 @@ static int apds9960_write_raw(struct iio_dev *indio_dev,
                }
        default:
                return -EINVAL;
-       };
+       }
 
        return 0;
 }
--

2.18.1