Skip to content

Commit

Permalink
spider_net: Use DECLARE_BITMAP
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Joe Perches authored and David S. Miller committed May 21, 2015
1 parent 3f55b7e commit e26cc7f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/ethernet/toshiba/spider_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit e26cc7f

Please sign in to comment.