]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: remove unreachable code
authorAmitkumar Karwar <akarwar@marvell.com>
Tue, 27 Sep 2011 03:37:24 +0000 (20:37 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 30 Sep 2011 19:56:59 +0000 (15:56 -0400)
commit8f2bce668835e88209f4c4e5fa78f3da5d827505
tree6f5ce9b4d91cab8cbc8cbf304b411492120fc505
parentddb5b081aba21a5fc006bcfda769ca51cf269b4d
mwifiex: remove unreachable code

In disconnected state "iw dev mlan0 link" command will return
from cfg80211 stack itself. We also have an error check in
mwifiex_cfg80211_get_station() routine. Therefore the code
under "if (!priv->media_connected)" condition in
mwifiex_rate_ioctl_get_rate_value() routine becomes unreachable.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/sta_ioctl.c