Return-path: Received: from eusmtp01.atmel.com ([212.144.249.242]:59459 "EHLO eusmtp01.atmel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932069AbbLXF6z (ORCPT ); Thu, 24 Dec 2015 00:58:55 -0500 From: Glen Lee To: CC: , , , , , , , , Subject: [PATCH v2 1/2] staging: wilc1000: fix always return 0 error Date: Thu, 24 Dec 2015 15:02:51 +0900 Message-ID: <1450936972-5773-1-git-send-email-glen.lee@atmel.com> (sfid-20151224_065858_627009_E2DB33BD) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-wireless-owner@vger.kernel.org List-ID: 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 --- Changes in v2: separate v1 patch into two patches. --- drivers/staging/wilc1000/wilc_sdio.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/wilc1000/wilc_sdio.c b/drivers/staging/wilc1000/wilc_sdio.c index e961b50..464d27d 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; } /** -- 1.9.1