mwifiex: handle an error path correctly
authorAmitkumar Karwar <akarwar@marvell.com>
Fri, 30 Sep 2011 03:43:41 +0000 (20:43 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 3 Oct 2011 19:22:36 +0000 (15:22 -0400)
commit44b815c6b063ddadacc062a28a3e3facc8486f31
tree171ac8deb41426c1f07dac9c5303175310209512
parentd85c5fe462fe3531f607fda787e9c80617e35437
mwifiex: handle an error path correctly

In failure case locks are not allocated in mwifiex_register().
So mwifiex_free_lock_list() routine call becomes redundant.
Also we don't need to check return type for mwifiex_init_lock_list()
routine. It never fails.

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