]> git.baikalelectronics.ru Git - kernel.git/commit
rtl8187: remove priv->mode
authorJohn W. Linville <linville@tuxdriver.com>
Tue, 22 Dec 2009 23:13:05 +0000 (18:13 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 28 Dec 2009 21:31:38 +0000 (16:31 -0500)
commit7729a8c8c322cd9b10530a1a806c89708ebad58b
treec1f828d8097c373a657f6411a2a6290ff5b9bfc3
parent9b84e8b4f5fc077abfedf399940480430e94c548
rtl8187: remove priv->mode

It is checked in add_interface, but there it is easily replaced with
a check of priv->vif.  If that information should become necessary,
it is available in vif->type anyway.

It is also checked in led_turn_on and led_turn_off, where I made the
substitutions as described above.  Of course, these checks seem to
have been incorrect since the driver was using NL80211_IFTYPE_MONITOR
to indicate no interface rather than NL80211_IFTYPE_UNSPECIFIED.
Anyway, I think these checks may be extraneous...?

Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtl818x/rtl8187.h
drivers/net/wireless/rtl818x/rtl8187_dev.c
drivers/net/wireless/rtl818x/rtl8187_leds.c