Skip to content

Commit

Permalink
net: mscc: ocelot: remove unused variable 'vcap_data_t'
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
YueHaibing authored and David S. Miller committed Jun 6, 2019
1 parent a19a058 commit 39f8235
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/mscc/ocelot_ace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 39f8235

Please sign in to comment.