Commit 39f82358 authored by YueHaibing's avatar YueHaibing Committed by David S. Miller

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: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a19a0582
...@@ -93,7 +93,7 @@ struct vcap_data { ...@@ -93,7 +93,7 @@ struct vcap_data {
u32 counter_offset; /* Current counter offset */ u32 counter_offset; /* Current counter offset */
u32 tg_value; /* Current type-group value */ u32 tg_value; /* Current type-group value */
u32 tg_mask; /* Current type-group mask */ u32 tg_mask; /* Current type-group mask */
} vcap_data_t; };
static u32 vcap_s2_read_update_ctrl(struct ocelot *oc) static u32 vcap_s2_read_update_ctrl(struct ocelot *oc)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment