lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <YTMYM6s+PZA/r1mw@google.com>
Date:   Fri, 3 Sep 2021 23:54:43 -0700
From:   Dmitry Torokhov <dmitry.torokhov@...il.com>
To:     mateng <ayowoe@....com>
Cc:     linux-input@...r.kernel.org, linux-kernel@...r.kernel.org,
        mateng <mateng@...ong.com>
Subject: Re: [PATCH] input/serio:unneeded variable:delay

On Tue, Mar 23, 2021 at 03:02:50PM +0800, mateng wrote:
> From: mateng <mateng@...ong.com>
> 
> delete unneeded variable 'delay'

Sorry, but this is bogus.

> 
> Signed-off-by: mateng <mateng@...ong.com>
> ---
>  drivers/input/serio/i8042.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/drivers/input/serio/i8042.c b/drivers/input/serio/i8042.c
> index abae23a..145bda1 100644
> --- a/drivers/input/serio/i8042.c
> +++ b/drivers/input/serio/i8042.c
> @@ -1126,7 +1126,6 @@ static void i8042_controller_reset(bool s2r_wants_reset)
>  
>  static long i8042_panic_blink(int state)
>  {
> -	long delay = 0;
>  	char led;
>  
>  	led = (state) ? 0x01 | 0x04 : 0;
> @@ -1142,7 +1141,7 @@ static long i8042_panic_blink(int state)
>  	dbg("%02x -> i8042 (panic blink)\n", led);
>  	i8042_write_data(led);
>  	DELAY;
> -	return delay;
> +	return 0;
>  }
>  
>  #undef DELAY
> -- 
> 1.9.1
> 

-- 
Dmitry

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ