lkml.org 
[lkml]   [2019]   [Dec]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH next] net/wan/fsl_ucc_hdlc: remove set but not used variables 'ut_info' and 'ret'
From
From: Chen Zhou <chenzhou10@huawei.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@huawei.com>
> Signed-off-by: Chen Zhou <chenzhou10@huawei.com>

Applied.

\
 
 \ /
  Last update: 2019-12-28 20:35    [W:0.032 / U:2.348 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site