From: glen lee <glen.lee@atmel.com>
To: Julian Calaby <julian.calaby@gmail.com>
Cc: Greg KH <gregkh@linuxfoundation.org>,
"devel@driverdev.osuosl.org" <devel@driverdev.osuosl.org>,
linux-wireless <linux-wireless@vger.kernel.org>,
Tony Cho <tony.cho@atmel.com>, <leo.kim@atmel.com>,
Austin Shin <austin.shin@atmel.com>, <adel.noureldin@atmel.com>,
<adham.abozaeid@atmel.com>, <Nicolas.FERRE@atmel.com>
Subject: Re: [PATCH] staging: wilc1000: remove wilc_sdio_init
Date: Thu, 24 Dec 2015 12:06:40 +0900 [thread overview]
Message-ID: <567B6140.1090907@atmel.com> (raw)
In-Reply-To: <CAGRGNgWrFdRYXg+912stL9fcYE2ZqbEzNoOiHnyjYvX+5BHR=A@mail.gmail.com>
On 2015년 12월 24일 11:39, Julian Calaby wrote:
> Hi Glen,
>
> On Wed, Dec 23, 2015 at 1:33 PM, Glen Lee <glen.lee@atmel.com> wrote:
>> wilc_sdio_init return always 1. It is needless, so just remove it and it's
>> related codes also.
>>
>> Signed-off-by: Glen Lee <glen.lee@atmel.com>
>> ---
>> drivers/staging/wilc1000/wilc_sdio.c | 12 ------------
>> 1 file changed, 12 deletions(-)
>>
>> diff --git a/drivers/staging/wilc1000/wilc_sdio.c b/drivers/staging/wilc1000/wilc_sdio.c
>> index e961b50..caad876 100644
>> --- a/drivers/staging/wilc1000/wilc_sdio.c
>> +++ b/drivers/staging/wilc1000/wilc_sdio.c
>> @@ -185,11 +185,6 @@ static void wilc_sdio_disable_interrupt(struct wilc *dev)
>> dev_info(&func->dev, "wilc_sdio_disable_interrupt OUT\n");
>> }
>>
>> -static int wilc_sdio_init(void)
>> -{
>> - return 1;
>> -}
>> -
>> /********************************************
>> *
>> * Function 0
>> @@ -611,13 +606,6 @@ static int sdio_init(struct wilc *wilc)
>>
>> g_sdio.irq_gpio = (wilc->dev_irq_num);
>>
>> - if (!wilc_sdio_init()) {
>> - dev_err(&func->dev, "Failed io init bus...\n");
>> - return 0;
>> - } else {
>> - return 0;
>> - }
>> -
> This isn't equivalent code as both arms of the if statement eventually
> call return 0.
Hi julian,
Yes, you are correct.
Actually, The original code was like this before It is patched wrongly.
- if (!wilc_sdio_init()) {
- dev_err(&func->dev, "Failed io init bus...\n");
- return 0;
- }
I could fix this first and then remove wilc_sdio_init().
But I thought that this can be fixed by removing wilc_sdio_init which also fixes always return 0 error.
Do you think I should fix "always return 0 error" first and then remove wilc_sdio_init()?
Or update change log about the error which cause this?
regards,
glen lee.
>
> Thanks,
>
next prev parent reply other threads:[~2015-12-24 3:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-23 2:33 [PATCH] staging: wilc1000: remove wilc_sdio_init Glen Lee
2015-12-24 2:39 ` Julian Calaby
2015-12-24 3:06 ` glen lee [this message]
2015-12-24 3:07 ` Julian Calaby
2015-12-24 3:16 ` glen lee
2015-12-24 6:59 ` Dan Carpenter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=567B6140.1090907@atmel.com \
--to=glen.lee@atmel.com \
--cc=Nicolas.FERRE@atmel.com \
--cc=adel.noureldin@atmel.com \
--cc=adham.abozaeid@atmel.com \
--cc=austin.shin@atmel.com \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=julian.calaby@gmail.com \
--cc=leo.kim@atmel.com \
--cc=linux-wireless@vger.kernel.org \
--cc=tony.cho@atmel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.