提交 e26cc7ff 编写于 作者: J Joe Perches 提交者: David S. Miller

spider_net: Use DECLARE_BITMAP

Use the generic mechanism to declare a bitmap instead of unsigned long.
Signed-off-by: NJoe Perches <joe@perches.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 3f55b7ed
...@@ -604,8 +604,7 @@ spider_net_set_multi(struct net_device *netdev) ...@@ -604,8 +604,7 @@ spider_net_set_multi(struct net_device *netdev)
int i; int i;
u32 reg; u32 reg;
struct spider_net_card *card = netdev_priv(netdev); struct spider_net_card *card = netdev_priv(netdev);
unsigned long bitmask[SPIDER_NET_MULTICAST_HASHES / BITS_PER_LONG] = DECLARE_BITMAP(bitmask, SPIDER_NET_MULTICAST_HASHES) = {};
{0, };
spider_net_set_promisc(card); spider_net_set_promisc(card);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册