diff options
author | Mao Wenan <maowenan@huawei.com> | 2019-06-09 09:11:26 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-10 05:11:53 +0200 |
commit | ad3a9ee0b623da60b6a3b77573b448ca10d40117 (patch) | |
tree | 3853945588d857e3c312b987bdb974cb0ba0f578 /drivers/net/ethernet/mscc | |
parent | ipv6: tcp: send consistent autoflowlabel in TIME_WAIT state (diff) | |
download | linux-ad3a9ee0b623da60b6a3b77573b448ca10d40117.tar.xz linux-ad3a9ee0b623da60b6a3b77573b448ca10d40117.zip |
ocelot: remove unused variable 'rc' in vcap_cmd()
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mscc')
-rw-r--r-- | drivers/net/ethernet/mscc/ocelot_ace.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/mscc/ocelot_ace.c b/drivers/net/ethernet/mscc/ocelot_ace.c index f74b98f7d8d1..39aca1ab4687 100644 --- a/drivers/net/ethernet/mscc/ocelot_ace.c +++ b/drivers/net/ethernet/mscc/ocelot_ace.c @@ -105,7 +105,6 @@ static void vcap_cmd(struct ocelot *oc, u16 ix, int cmd, int sel) u32 value = (S2_CORE_UPDATE_CTRL_UPDATE_CMD(cmd) | S2_CORE_UPDATE_CTRL_UPDATE_ADDR(ix) | S2_CORE_UPDATE_CTRL_UPDATE_SHOT); - int rc; if ((sel & VCAP_SEL_ENTRY) && ix >= vcap_is2.entry_count) return; @@ -120,7 +119,7 @@ static void vcap_cmd(struct ocelot *oc, u16 ix, int cmd, int sel) value |= S2_CORE_UPDATE_CTRL_UPDATE_CNT_DIS; ocelot_write(oc, value, S2_CORE_UPDATE_CTRL); - rc = readx_poll_timeout(vcap_s2_read_update_ctrl, oc, value, + readx_poll_timeout(vcap_s2_read_update_ctrl, oc, value, (value & S2_CORE_UPDATE_CTRL_UPDATE_SHOT) == 0, 10, 100000); } |