diff mbox series

cpuidle: remove unneeded semicolon in teo.c

Message ID 20210615114921.8340-1-wanjiabing@vivo.com (mailing list archive)
State Mainlined, archived
Headers show
Series cpuidle: remove unneeded semicolon in teo.c | expand

Commit Message

Jiabing Wan June 15, 2021, 11:49 a.m. UTC
Fix following coccicheck warning:
drivers/cpuidle/governors/teo.c:315:10-11: Unneeded semicolon

Signed-off-by: Wan Jiabing <wanjiabing@vivo.com>
---
 drivers/cpuidle/governors/teo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Rafael J. Wysocki June 17, 2021, 12:14 p.m. UTC | #1
On Tue, Jun 15, 2021 at 1:49 PM Wan Jiabing <wanjiabing@vivo.com> wrote:
>
> Fix following coccicheck warning:
> drivers/cpuidle/governors/teo.c:315:10-11: Unneeded semicolon
>
> Signed-off-by: Wan Jiabing <wanjiabing@vivo.com>
> ---
>  drivers/cpuidle/governors/teo.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/cpuidle/governors/teo.c b/drivers/cpuidle/governors/teo.c
> index 1e0b2f828abb..7b91060e82f6 100644
> --- a/drivers/cpuidle/governors/teo.c
> +++ b/drivers/cpuidle/governors/teo.c
> @@ -312,7 +312,7 @@ static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev,
>
>         /* Check if there is any choice in the first place. */
>         if (drv->state_count < 2) {
> -               idx = 0;;
> +               idx = 0;
>                 goto end;
>         }
>         if (!dev->states_usage[0].disable) {
> --

Applied as 5.14 material, thanks!
diff mbox series

Patch

diff --git a/drivers/cpuidle/governors/teo.c b/drivers/cpuidle/governors/teo.c
index 1e0b2f828abb..7b91060e82f6 100644
--- a/drivers/cpuidle/governors/teo.c
+++ b/drivers/cpuidle/governors/teo.c
@@ -312,7 +312,7 @@  static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev,
 
 	/* Check if there is any choice in the first place. */
 	if (drv->state_count < 2) {
-		idx = 0;;
+		idx = 0;
 		goto end;
 	}
 	if (!dev->states_usage[0].disable) {