From: Wei Yongjun Date: Wed, 30 Oct 2013 05:22:34 +0000 (+0800) Subject: libertas: fix error return code in if_cs_probe() X-Git-Tag: v3.13-rc1~7^2~6^2^2~27 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7777bd458e9e7cf9ac604f22e5b1691628b45c66;p=profile%2Fivi%2Fkernel-x86-ivi.git 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 Acked-by: Dan Williams Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/libertas/if_cs.c b/drivers/net/wireless/libertas/if_cs.c index ef8c98e..f499efc 100644 --- a/drivers/net/wireless/libertas/if_cs.c +++ b/drivers/net/wireless/libertas/if_cs.c @@ -902,6 +902,7 @@ static int if_cs_probe(struct pcmcia_device *p_dev) if (card->model == MODEL_UNKNOWN) { pr_err("unsupported manf_id 0x%04x / card_id 0x%04x\n", p_dev->manf_id, p_dev->card_id); + ret = -ENODEV; goto out2; }