libertas: fix error return code in if_cs_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Wed, 30 Oct 2013 05:22:34 +0000 (13:22 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 11 Nov 2013 19:38:58 +0000 (14:38 -0500)
commit7777bd458e9e7cf9ac604f22e5b1691628b45c66
tree02b3ce61ea08df48d5fccb9315dd32456bb90bb7
parenta497e47d4aec37aaf8f13509f3ef3d1f6a717d88
libertas: fix error return code in if_cs_probe()

Fix to return -ENODEV in the unknown model error handling
case instead of 0, as done elsewhere in this function.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/if_cs.c