iio: light: si1145: remove redundant continue statement
diff mbox series

Message ID 20210617081312.151746-1-colin.king@canonical.com
State New, archived
Headers show
Series
  • iio: light: si1145: remove redundant continue statement
Related show

Commit Message

Colin King June 17, 2021, 8:13 a.m. UTC
From: Colin Ian King <colin.king@canonical.com>

The continue statement at the end of a for-loop has no effect,
remove it.

Addresses-Coverity: ("Continue has no effect")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 drivers/iio/light/si1145.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Jonathan Cameron July 18, 2021, 2:44 p.m. UTC | #1
On Thu, 17 Jun 2021 09:13:12 +0100
Colin King <colin.king@canonical.com> wrote:

> From: Colin Ian King <colin.king@canonical.com>
> 
> The continue statement at the end of a for-loop has no effect,
> remove it.
> 
> Addresses-Coverity: ("Continue has no effect")
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
Applied.

Thanks,

Jonathan

> ---
>  drivers/iio/light/si1145.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/iio/light/si1145.c b/drivers/iio/light/si1145.c
> index e2abad48b9f4..e8f6cdf26f22 100644
> --- a/drivers/iio/light/si1145.c
> +++ b/drivers/iio/light/si1145.c
> @@ -220,7 +220,6 @@ static int __si1145_command_reset(struct si1145_data *data)
>  			return -ETIMEDOUT;
>  		}
>  		msleep(SI1145_COMMAND_MINSLEEP_MS);
> -		continue;
>  	}
>  }
>

Patch
diff mbox series

diff --git a/drivers/iio/light/si1145.c b/drivers/iio/light/si1145.c
index e2abad48b9f4..e8f6cdf26f22 100644
--- a/drivers/iio/light/si1145.c
+++ b/drivers/iio/light/si1145.c
@@ -220,7 +220,6 @@  static int __si1145_command_reset(struct si1145_data *data)
 			return -ETIMEDOUT;
 		}
 		msleep(SI1145_COMMAND_MINSLEEP_MS);
-		continue;
 	}
 }