summaryrefslogtreecommitdiff
path: root/include/linux/flex_array.h
diff options
context:
space:
mode:
authorNogah Frankel <nogahf@mellanox.com>2017-09-20 17:15:03 +0300
committerDavid S. Miller <davem@davemloft.net>2017-09-21 04:03:12 +0300
commit0161b9505ab59d4bfc0de66073c9240d1b05040d (patch)
treeb5e33328bc414612fa62f4c3f7afdb2de083ebc3 /include/linux/flex_array.h
parent4cdc35e4ebf2e6b1cf4fe028eb9e711723f9199a (diff)
downloadlinux-0161b9505ab59d4bfc0de66073c9240d1b05040d.tar.xz
mlxsw: spectrum_switchdev: Remove reference count from mid
Since there is a bitmap for the ports registered to each mid, there is no need for a ref count, since it will always be the number of set bits in this bitmap. Any check of the ref count was replaced with checking if the bitmap is empty. Signed-off-by: Nogah Frankel <nogahf@mellanox.com> Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/flex_array.h')
0 files changed, 0 insertions, 0 deletions