lkml.org 
[lkml]   [2020]   [Sep]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: [PATCH net-next] net: cortina: Remove set but not used variable
    From
    From: Zheng Yongjun <zhengyongjun3@huawei.com>
    Date: Fri, 18 Sep 2020 16:49:51 +0800

    > Fixes gcc '-Wunused-but-set-variable' warning:
    >
    > drivers/net/ethernet/cortina/gemini.c: In function gmac_get_ringparam:
    > drivers/net/ethernet/cortina/gemini.c:2125:21: warning: variable ‘config0’ set but not used [-Wunused-but-set-variable]
    >
    > drivers/net/ethernet/cortina/gemini.c: In function gmac_init:
    > drivers/net/ethernet/cortina/gemini.c:512:6: warning: variable ‘val’ set but not used [-Wunused-but-set-variable]
    >
    > these variable is never used, so remove it.
    >
    > Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>

    Applied.
    \
     
     \ /
      Last update: 2020-09-18 23:35    [W:2.287 / U:0.308 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site