staging: wilc1000: fix always return 0 error
authorGlen Lee <glen.lee@atmel.com>
Thu, 24 Dec 2015 06:02:51 +0000 (15:02 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Feb 2016 23:05:35 +0000 (15:05 -0800)
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 <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_sdio.c

index e961b500490283acb9d7599ea93111e9959372bb..464d27df829aeca429884816d10daff61e6b20c7 100644 (file)
@@ -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;
        }
 
        /**