diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2021-07-14 10:32:33 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-07-16 10:54:18 -0700 |
commit | a99f030b2488b67a49f44e94f852f2ed9933d552 (patch) | |
tree | 432205632459702d8944c65fee12206a8930ae95 /drivers/net/ethernet/intel/igc/igc.h | |
parent | f79a3bcb1a50d919147b9f22855d355ed8e03031 (diff) |
net: switchdev: Simplify 'mlxsw_sp_mc_write_mdb_entry()'
Use 'bitmap_alloc()/bitmap_free()' instead of hand-writing it.
This makes the code less verbose.
Also, use 'bitmap_alloc()' instead of 'bitmap_zalloc()' because the bitmap
is fully overridden by a 'bitmap_copy()' call just after its allocation.
While at it, remove an extra and unneeded space.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc.h')
0 files changed, 0 insertions, 0 deletions