aboutsummaryrefslogtreecommitdiffstats
path: root/net/dsa/dsa.c
diff options
context:
space:
mode:
authorAndy Shevchenko <[email protected]>2017-07-18 15:49:26 +0000
committerDavid S. Miller <[email protected]>2017-07-19 23:24:59 +0000
commiteeef1713cacdb3cf657c9830e5a4c61e7f35c60a (patch)
treeee1490ad4b120c595e9686e54a5fd9441016afab /net/dsa/dsa.c
parentsfc: Add ethtool -m support for QSFP modules (diff)
downloadkernel-eeef1713cacdb3cf657c9830e5a4c61e7f35c60a.tar.gz
kernel-eeef1713cacdb3cf657c9830e5a4c61e7f35c60a.zip
ISDN: eicon: switch to use native bitmaps
Two arrays are clearly bit maps, so, make that explicit by converting to bitmap API and remove custom helpers. Note sig_ind() uses out of boundary bit to (looks like) protect against potential bitmap_empty() checks for the same bitmap. This patch removes that since: 1) that didn't guarantee atomicity anyway; 2) the first operation inside the for-loop is set bit in the bitmap (which effectively makes it non-empty); 3) group_optimization() doesn't utilize possible emptiness of the bitmap in question. Thus, if there is a protection needed it should be implemented properly. Signed-off-by: Andy Shevchenko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/dsa/dsa.c')
0 files changed, 0 insertions, 0 deletions