[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20191228.113437.849229183154552588.davem@davemloft.net>
Date: Sat, 28 Dec 2019 11:34:37 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: chenzhou10@...wei.com
Cc: qiang.zhao@....com, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH next] net/wan/fsl_ucc_hdlc: remove set but not used
variables 'ut_info' and 'ret'
From: Chen Zhou <chenzhou10@...wei.com>
Date: Sat, 28 Dec 2019 11:09:47 +0800
> Fixes gcc '-Wunused-but-set-variable' warning:
>
> drivers/net/wan/fsl_ucc_hdlc.c: In function ucc_hdlc_irq_handler:
> drivers/net/wan/fsl_ucc_hdlc.c:643:23:
> warning: variable ut_info set but not used [-Wunused-but-set-variable]
> drivers/net/wan/fsl_ucc_hdlc.c: In function uhdlc_suspend:
> drivers/net/wan/fsl_ucc_hdlc.c:880:23:
> warning: variable ut_info set but not used [-Wunused-but-set-variable]
> drivers/net/wan/fsl_ucc_hdlc.c: In function uhdlc_resume:
> drivers/net/wan/fsl_ucc_hdlc.c:925:6:
> warning: variable ret set but not used [-Wunused-but-set-variable]
>
> Reported-by: Hulk Robot <hulkci@...wei.com>
> Signed-off-by: Chen Zhou <chenzhou10@...wei.com>
Applied.
Powered by blists - more mailing lists