summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-06-06 22:46:49 +0800
committerDavid S. Miller <davem@davemloft.net>2019-06-06 11:36:39 -0700
commit39f82358485123cbc602ecb5040a95d6e4edaf27 (patch)
tree50603c2b52652cb2868aad2de0031f2d43c95dd1
parenta19a0582363b9a5f8ba812f34f1b8df394898780 (diff)
downloadlinux-39f82358485123cbc602ecb5040a95d6e4edaf27.tar.gz
linux-39f82358485123cbc602ecb5040a95d6e4edaf27.tar.bz2
linux-39f82358485123cbc602ecb5040a95d6e4edaf27.zip
net: mscc: ocelot: remove unused variable 'vcap_data_t'
Fix sparse warning: drivers/net/ethernet/mscc/ocelot_ace.c:96:3: warning: symbol 'vcap_data_t' was not declared. Should it be static? 'vcap_data_t' never used so can be removed Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/mscc/ocelot_ace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mscc/ocelot_ace.c b/drivers/net/ethernet/mscc/ocelot_ace.c
index 34d8260b8cb8..f74b98f7d8d1 100644
--- a/drivers/net/ethernet/mscc/ocelot_ace.c
+++ b/drivers/net/ethernet/mscc/ocelot_ace.c
@@ -93,7 +93,7 @@ struct vcap_data {
u32 counter_offset; /* Current counter offset */
u32 tg_value; /* Current type-group value */
u32 tg_mask; /* Current type-group mask */
-} vcap_data_t;
+};
static u32 vcap_s2_read_update_ctrl(struct ocelot *oc)
{