diff options
author | Ivo van Doorn <ivdoorn@gmail.com> | 2007-11-27 15:51:57 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:05:11 -0500 |
commit | b3a78b4e2a4ee7a06861e012d95acea513384001 (patch) | |
tree | 97f431af59339b121bb2f118ae092046d9774567 /drivers/net/wireless/rt2x00/rt2x00rfkill.c | |
parent | 6f8a4da17ea2c8467f88a586ae1d6fcfe2c66222 (diff) |
rt2x00: Cleanup rfkill
The label exit_free_polldev is no longer used and can be removed.
input_free_polled_device() also calls input_free_device(), so
don't call it seperatly.
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/rt2x00rfkill.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00rfkill.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00rfkill.c b/drivers/net/wireless/rt2x00/rt2x00rfkill.c index 74396372e95c..34a96d44e306 100644 --- a/drivers/net/wireless/rt2x00/rt2x00rfkill.c +++ b/drivers/net/wireless/rt2x00/rt2x00rfkill.c | |||
@@ -148,9 +148,6 @@ int rt2x00rfkill_allocate(struct rt2x00_dev *rt2x00dev) | |||
148 | 148 | ||
149 | return 0; | 149 | return 0; |
150 | 150 | ||
151 | exit_free_polldev: | ||
152 | input_free_polled_device(rt2x00dev->poll_dev); | ||
153 | |||
154 | exit_free_rfkill: | 151 | exit_free_rfkill: |
155 | rfkill_free(rt2x00dev->rfkill); | 152 | rfkill_free(rt2x00dev->rfkill); |
156 | 153 | ||
@@ -163,7 +160,6 @@ void rt2x00rfkill_free(struct rt2x00_dev *rt2x00dev) | |||
163 | if (!test_bit(CONFIG_SUPPORT_HW_BUTTON, &rt2x00dev->flags)) | 160 | if (!test_bit(CONFIG_SUPPORT_HW_BUTTON, &rt2x00dev->flags)) |
164 | return; | 161 | return; |
165 | 162 | ||
166 | input_free_device(rt2x00dev->poll_dev->input); | ||
167 | input_free_polled_device(rt2x00dev->poll_dev); | 163 | input_free_polled_device(rt2x00dev->poll_dev); |
168 | rfkill_free(rt2x00dev->rfkill); | 164 | rfkill_free(rt2x00dev->rfkill); |
169 | } | 165 | } |