public inbox for linux-ide@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Date:do not initialise statics to 0
@ 2022-07-19 11:29 Xin Gao
  2022-07-19 11:45 ` Damien Le Moal
  0 siblings, 1 reply; 2+ messages in thread
From: Xin Gao @ 2022-07-19 11:29 UTC (permalink / raw)
  To: damien.lemoal; +Cc: s.shtylyov, linux-ide, linux-kernel, Xin Gao

do not initialise statics to 0

Signed-off-by: Xin Gao <gaoxin@cdjrlc.com>
---
 drivers/ata/pata_artop.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/ata/pata_artop.c b/drivers/ata/pata_artop.c
index 20a8f31a3f57..1aad8df2ea87 100644
--- a/drivers/ata/pata_artop.c
+++ b/drivers/ata/pata_artop.c
@@ -37,7 +37,7 @@
  *	test stuff.
  */
 
-static int clock = 0;
+static int clock;
 
 /**
  *	artop62x0_pre_reset	-	probe begin
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Date:do not initialise statics to 0
  2022-07-19 11:29 [PATCH] Date:do not initialise statics to 0 Xin Gao
@ 2022-07-19 11:45 ` Damien Le Moal
  0 siblings, 0 replies; 2+ messages in thread
From: Damien Le Moal @ 2022-07-19 11:45 UTC (permalink / raw)
  To: Xin Gao; +Cc: s.shtylyov, linux-ide, linux-kernel

On 7/19/22 20:29, Xin Gao wrote:
> do not initialise statics to 0
> 
> Signed-off-by: Xin Gao <gaoxin@cdjrlc.com>
> ---
>  drivers/ata/pata_artop.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/ata/pata_artop.c b/drivers/ata/pata_artop.c
> index 20a8f31a3f57..1aad8df2ea87 100644
> --- a/drivers/ata/pata_artop.c
> +++ b/drivers/ata/pata_artop.c
> @@ -37,7 +37,7 @@
>   *	test stuff.
>   */
>  
> -static int clock = 0;
> +static int clock;
>  
>  /**
>   *	artop62x0_pre_reset	-	probe begin

Very weird patch title.

Is this solving any static analyzer or compiler warning ? If not, this is
not a very useful change.

-- 
Damien Le Moal
Western Digital Research

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-07-19 11:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-19 11:29 [PATCH] Date:do not initialise statics to 0 Xin Gao
2022-07-19 11:45 ` Damien Le Moal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox