mwifiex: code rearrangement for better readability
authorAmitkumar Karwar <akarwar@marvell.com>
Tue, 18 Jun 2013 23:36:56 +0000 (16:36 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 19 Jun 2013 19:28:20 +0000 (15:28 -0400)
commitf2bbb07729f04bd8efa3f3285f19ba0609e42017
tree51eebeca0bb763487d527d25cdd841955e913c26
parent10d0b9030a3f86e1e26c710c7580524d7787d688
mwifiex: code rearrangement for better readability

Use negative check (if(!bss_desc)) and return failure
instead of failing a NULL check later in
mwifiex_check_network_compatibility() routine.

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