r8152: use test_and_clear_bit
authorhayeswang <hayeswang@realtek.com>
Thu, 7 Jan 2016 09:51:11 +0000 (17:51 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 9 Jan 2016 02:57:17 +0000 (21:57 -0500)
commit216a8349d3a0dd1bc2afbcc821e374c8f929bd62
tree802688621214d4a12f91790dce33eaa5f8e96099
parent01dd194c387af5b3c4c1f6459d30f596565e466c
r8152: use test_and_clear_bit

Replace test_bit() followed by clear_bit() with test_and_clear_bit().

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c