net/mlx4: Use bitmap_weight_and()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Tue, 23 May 2023 18:17:52 +0000 (20:17 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 25 May 2023 11:35:08 +0000 (13:35 +0200)
commit623a71385312ee288d59e319b90922e6e6943766
treed8f09139114f7a017f9f685c285b501554a5f774
parente8f8b3323039e4c60c626ce853eca7b36b0aaa8f
net/mlx4: Use bitmap_weight_and()

Use bitmap_weight_and() instead of hand writing it.

This saves a few LoC and is slightly faster, should it mater.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Link: https://lore.kernel.org/r/a29c2348a062408bec45cee2601b2417310e5ea7.1684865809.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/mellanox/mlx4/main.c