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)
commitcbaaf592b742ccecfd066e796cdb1eda461f4db2
tree6f5ce9b4d91cab8cbc8cbf304b411492120fc505
parent82df4d38a0194ad1804d1ab4716577d194be5a53
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