]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commitf712cc05eccbaf8251eb8e94cf630a86e72adc2a
tree3abf46330988301b1359967e640dd14450a94127
parentee0f1be2330bbb885a832bbb0d267b89d2e85cc0
[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