mwifiex: use return value of mwifiex_add_virtual_intf() correctly
authorAmitkumar Karwar <akarwar@marvell.com>
Fri, 15 Nov 2013 03:10:37 +0000 (19:10 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 15 Nov 2013 19:29:30 +0000 (14:29 -0500)
commit68b76e99d1f7b696d49b5e99286401150072987a
treec2a420deb2a1be9b5ae054f8fbed65f7c1a227aa
parentb4089d6d8e71a7293e2192025dfa507a04f661c4
mwifiex: use return value of mwifiex_add_virtual_intf() correctly

mwifiex_add_virtual_intf() returns ERR_PTR values. So use IS_ERR()
macro instead of checking for NULL pointer.

Reported-by: Ujjal Roy <royujjal@gmail.com>
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/main.c