spider_net: Use DECLARE_BITMAP
authorJoe Perches <joe@perches.com>
Wed, 20 May 2015 01:37:55 +0000 (18:37 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 May 2015 21:17:50 +0000 (17:17 -0400)
Use the generic mechanism to declare a bitmap instead of unsigned long.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/toshiba/spider_net.c

index 8e9371a3388a00ed78043c1d098b8c31db776ea7..3c54a2cae5dfd09e066205b945ae937a3cfabaee 100644 (file)
@@ -604,8 +604,7 @@ spider_net_set_multi(struct net_device *netdev)
        int i;
        u32 reg;
        struct spider_net_card *card = netdev_priv(netdev);
-       unsigned long bitmask[SPIDER_NET_MULTICAST_HASHES / BITS_PER_LONG] =
-               {0, };
+       DECLARE_BITMAP(bitmask, SPIDER_NET_MULTICAST_HASHES) = {};
 
        spider_net_set_promisc(card);