hostap: fix an error code in prism2_config()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 4 Dec 2015 13:17:46 +0000 (16:17 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 11 Dec 2015 11:22:04 +0000 (13:22 +0200)
commit9e4aee43dc2211a976f8aa7df5cf823d7a4ae640
tree05fc8f785f403e913f307f9e47004d5d85e0ba76
parent97276c10cb45380ba5d5772b616fc33b55b5bf40
hostap: fix an error code in prism2_config()

The current code returns success if prism2_init_local_data() fails, but
we want to return an error code.  Also we can remove the bogus
ret initializer because it is wrong and never used.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/intersil/hostap/hostap_cs.c