aboutsummaryrefslogtreecommitdiffstats
path: root/net/openvswitch/datapath.h
diff options
context:
space:
mode:
authorChristophe JAILLET <[email protected]>2021-07-14 08:32:33 +0000
committerDavid S. Miller <[email protected]>2021-07-16 17:54:18 +0000
commita99f030b2488b67a49f44e94f852f2ed9933d552 (patch)
tree432205632459702d8944c65fee12206a8930ae95 /net/openvswitch/datapath.h
parentnet/sched: Remove unnecessary if statement (diff)
downloadkernel-a99f030b2488b67a49f44e94f852f2ed9933d552.tar.gz
kernel-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 <[email protected]> Reviewed-by: Ido Schimmel <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/openvswitch/datapath.h')
0 files changed, 0 insertions, 0 deletions