From: Glen Lee Date: Thu, 24 Dec 2015 06:02:51 +0000 (+0900) Subject: staging: wilc1000: fix always return 0 error X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e663900aed9b90270e3452d500426ca0ae5762ed;p=openwrt%2Fstaging%2Fblogic.git staging: wilc1000: fix always return 0 error This patch fixes a bug that return always 0 so it fails every time. Fixes: c1af9db78950 ("staging: wilc1000: call linux_sdio_init instead of io_init") Signed-off-by: Glen Lee Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/wilc1000/wilc_sdio.c b/drivers/staging/wilc1000/wilc_sdio.c index e961b5004902..464d27df829a 100644 --- a/drivers/staging/wilc1000/wilc_sdio.c +++ b/drivers/staging/wilc1000/wilc_sdio.c @@ -614,8 +614,6 @@ static int sdio_init(struct wilc *wilc) if (!wilc_sdio_init()) { dev_err(&func->dev, "Failed io init bus...\n"); return 0; - } else { - return 0; } /**