lkml.org 
[lkml]   [2019]   [Jun]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH -next] ocelot: remove unused variable 'rc' in vcap_cmd()
From
From: Mao Wenan <maowenan@huawei.com>
Date: Sun, 9 Jun 2019 15:11:26 +0800

> Fixes gcc '-Wunused-but-set-variable' warning:
>
> drivers/net/ethernet/mscc/ocelot_ace.c: In function ‘vcap_cmd’:
> drivers/net/ethernet/mscc/ocelot_ace.c:108:6: warning: variable ‘rc’ set
> but not used [-Wunused-but-set-variable]
> int rc;
> ^
> It's never used since introduction in commit b596229448dd ("net: mscc:
> ocelot: Add support for tcam")
>
> Signed-off-by: Mao Wenan <maowenan@huawei.com>

Applied.
\
 
 \ /
  Last update: 2019-06-10 05:12    [W:0.036 / U:10.456 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site