Commit a99f030
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>1 parent f79a3bc commit a99f030
1 file changed
+3
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1569 | 1569 | | |
1570 | 1570 | | |
1571 | 1571 | | |
1572 | | - | |
1573 | 1572 | | |
1574 | 1573 | | |
1575 | 1574 | | |
| |||
1579 | 1578 | | |
1580 | 1579 | | |
1581 | 1580 | | |
1582 | | - | |
1583 | | - | |
| 1581 | + | |
1584 | 1582 | | |
1585 | 1583 | | |
1586 | 1584 | | |
1587 | | - | |
| 1585 | + | |
1588 | 1586 | | |
1589 | 1587 | | |
1590 | 1588 | | |
1591 | 1589 | | |
1592 | 1590 | | |
1593 | | - | |
| 1591 | + | |
1594 | 1592 | | |
1595 | 1593 | | |
1596 | 1594 | | |
| |||
0 commit comments