Re: [PATCH] speakup: genmap: remove redundant post-increment

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



bajing, le mar. 13 août 2024 11:17:53 +0800, a ecrit:
> In the while loop, the variable lc is unused and is reinitialized later, so this redundant operation should be removed.
> 
> Signed-off-by: bajing <bajing@xxxxxxxxxxxxxxxxxxxx>

Reviewed-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxx>

> ---
>  drivers/accessibility/speakup/genmap.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/accessibility/speakup/genmap.c b/drivers/accessibility/speakup/genmap.c
> index 0125000e00d9..836276327bdd 100644
> --- a/drivers/accessibility/speakup/genmap.c
> +++ b/drivers/accessibility/speakup/genmap.c
> @@ -72,7 +72,6 @@ main(int argc, char *argv[])
>  
>  	open_input(NULL, argv[1]);
>  	while (fgets(buffer, sizeof(buffer), infile)) {
> -		lc++;
>  		value = shift_state = 0;
>  
>  		cp = strtok(buffer, delims);
> -- 
> 2.33.0




[Index of Archives]     [Linux for the Blind]     [Fedora Discussioin]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]

  Powered by Linux