diff options
author | Ivo van Doorn <ivdoorn@gmail.com> | 2009-07-11 20:00:19 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-07-24 23:05:12 +0400 |
commit | 4b9631a4734e25e37c83e72c3e0ffcbb08de5791 (patch) | |
tree | db713716a43eee20dc42cceef164e0e91b9b573a /drivers/net/wireless/rt2x00/rt2x00dev.c | |
parent | acbadf01ff6727a2c7dc6e12f70ce8d05a16dc06 (diff) | |
download | linux-4b9631a4734e25e37c83e72c3e0ffcbb08de5791.tar.xz |
rt2x00: Remove DEVICE_STATE_DISABLED_RADIO_HW
The DEVICE_STATE_DISABLED_RADIO_HW flag is only read but never set,
it is an ancient part of one of the many versions of the rfkill implementations
in rt2x00. It is about time is disappears.
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00dev.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00dev.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00dev.c b/drivers/net/wireless/rt2x00/rt2x00dev.c index 4fff3a83f7df..658a63bfb761 100644 --- a/drivers/net/wireless/rt2x00/rt2x00dev.c +++ b/drivers/net/wireless/rt2x00/rt2x00dev.c @@ -40,8 +40,7 @@ int rt2x00lib_enable_radio(struct rt2x00_dev *rt2x00dev) * Don't enable the radio twice. * And check if the hardware button has been disabled. */ - if (test_bit(DEVICE_STATE_ENABLED_RADIO, &rt2x00dev->flags) || - test_bit(DEVICE_STATE_DISABLED_RADIO_HW, &rt2x00dev->flags)) + if (test_bit(DEVICE_STATE_ENABLED_RADIO, &rt2x00dev->flags)) return 0; /* |