[media] rtl2832_sdr: cleanup some set_bit() calls
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 14 May 2015 08:39:17 +0000 (05:39 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 20 May 2015 16:45:15 +0000 (13:45 -0300)
commite4d131d392073e498d23bb0e52198258c3637116
tree3abf46330988301b1359967e640dd14450a94127
parent85756a069c55e0315ac5990806899cfb607b987f
[media] rtl2832_sdr: cleanup some set_bit() calls

This code works fine but static checkers complain.  The test_bit()
function takes the bit number and not a mask.  Then the other issue is
that we were using USB_STATE_URB_BUF which is BIT(0) instead of URB_BUF.
Also we were open coding that instead of using the test/clear/set_bit()
functions.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/dvb-frontends/rtl2832_sdr.c