lkml.org 
[lkml]   [2020]   [Sep]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH net-next] net: mventa: remove unused variable 'dummy' in mvneta_mib_counters_clear()
From
From: Zhang Changzhong <zhangchangzhong@huawei.com>
Date: Sat, 19 Sep 2020 10:26:51 +0800

> Fixes the following W=1 kernel build warning(s):
>
> drivers/net/ethernet/marvell/mvneta.c:754:6: warning:
> variable 'dummy' set but not used [-Wunused-but-set-variable]
> 754 | u32 dummy;
> | ^~~~~
>
> This variable is not used in function mvneta_mib_counters_clear(), so
> remove it to avoid build warning.
>
> Signed-off-by: Zhang Changzhong <zhangchangzhong@huawei.com>

Applied.

\
 
 \ /
  Last update: 2020-09-20 23:19    [W:0.055 / U:0.340 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site