net: atlantic: Use the bitmap API instead of hand-writing it
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 23 Jan 2022 06:53:46 +0000 (07:53 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Jan 2022 12:57:01 +0000 (12:57 +0000)
commitebe0582bee78e221b7d9f09ff22a530e0ddd6c96
treef94c1606fea1a5f6e0fd2d50ad01ee3a56203060
parent2afc3b5a31f9edf3ef0f374f5d70610c79c93a42
net: atlantic: Use the bitmap API instead of hand-writing it

Simplify code by using bitmap_weight() and bitmap_zero() instead of
hand-writing these functions.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Igor Russkikh <irusskikh@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/aquantia/atlantic/aq_filters.c