]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
net: mscc: ocelot: remove unused variable 'vcap_data_t'
authorYueHaibing <yuehaibing@huawei.com>
Thu, 6 Jun 2019 14:46:49 +0000 (22:46 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Jun 2019 18:36:39 +0000 (11:36 -0700)
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>
drivers/net/ethernet/mscc/ocelot_ace.c

index 34d8260b8cb82c51267b7a6805f1bb05de703869..f74b98f7d8d13471a4ab33a4ca629e5efabc6713 100644 (file)
@@ -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)
 {