summaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2021-07-14 10:32:33 +0200
committerDavid S. Miller <davem@davemloft.net>2021-07-16 10:54:18 -0700
commita99f030b2488b67a49f44e94f852f2ed9933d552 (patch)
tree432205632459702d8944c65fee12206a8930ae95 /README
parentf79a3bcb1a50d919147b9f22855d355ed8e03031 (diff)
downloadlinux-stable-a99f030b2488b67a49f44e94f852f2ed9933d552.tar.gz
linux-stable-a99f030b2488b67a49f44e94f852f2ed9933d552.tar.bz2
linux-stable-a99f030b2488b67a49f44e94f852f2ed9933d552.zip
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 'README')
0 files changed, 0 insertions, 0 deletions