summaryrefslogtreecommitdiffstats
path: root/drivers/net/can/mscan/mscan.c
diff options
context:
space:
mode:
authorAkinobu Mita <akinobu.mita@gmail.com>2012-11-29 02:27:45 +0100
committerDavid S. Miller <davem@davemloft.net>2012-11-30 18:10:57 +0100
commit481af03bfbc1e07954310689831ad2695b7c6a44 (patch)
treeb9781c35dcf9990c7f94ec3cbc0c6c93063fbddb /drivers/net/can/mscan/mscan.c
parent8021q: fix vlan device to inherit the unicast filtering capability flag (diff)
downloadlinux-481af03bfbc1e07954310689831ad2695b7c6a44.tar.xz
linux-481af03bfbc1e07954310689831ad2695b7c6a44.zip
mISDN: improve bitops usage
This improves bitops usages in several points: - Convert u64 to a proper bitmap declaration. This enables to remove superfluous typecasting from 'u64' to 'unsigned long *'. - Convert superfluous atomic bitops to non atomic bitops. The bitmap is allocated on the stack and it is not accessed by any other threads, so using atomic bitops is not necessary. - Use find_next_zero_bit and find_next_zero_bit instead of calling test_bit() for each bit. Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Cc: Karsten Keil <isdn@linux-pingi.de> Cc: netdev@vger.kernel.org Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/can/mscan/mscan.c')
0 files changed, 0 insertions, 0 deletions