From: Jonathan Cameron <jic23@kernel.org>
To: Daniel Baluta <daniel.baluta@gmail.com>
Cc: "linux-iio@vger.kernel.org" <linux-iio@vger.kernel.org>,
Vlad Dogaru <vlad.dogaru@intel.com>
Subject: Re: [PATCH] iio:prox:sx9500 trivial simplification of return path in init function.
Date: Mon, 04 May 2015 10:38:16 +0100 [thread overview]
Message-ID: <55473E08.7040102@kernel.org> (raw)
In-Reply-To: <CAEnQRZCcvM6OLqupJuBxYWQLyBbqNEP4qF7rFC+rxF9GZuhiyg@mail.gmail.com>
On 04/05/15 10:22, Daniel Baluta wrote:
> On Sat, May 2, 2015 at 1:29 PM, Jonathan Cameron <jic23@kernel.org> wrote:
>> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
>> Reported-by: kbuild test robot <fengguang.wu@intel.com>
>> Cc: Vlad Dogaru <vlad.dogaru@intel.com>
>> ---
>> drivers/iio/proximity/sx9500.c | 4 +---
>> 1 file changed, 1 insertion(+), 3 deletions(-)
>>
>> diff --git a/drivers/iio/proximity/sx9500.c b/drivers/iio/proximity/sx9500.c
>> index f1e9d734b6b6..323de9510ba5 100644
>> --- a/drivers/iio/proximity/sx9500.c
>> +++ b/drivers/iio/proximity/sx9500.c
>> @@ -860,10 +860,8 @@ static int sx9500_init_device(struct iio_dev *indio_dev)
>> }
>>
>> ret = sx9500_init_compensation(indio_dev);
>> - if (ret < 0)
>> - return ret;
>>
>> - return 0;
>> + return ret;
>> }
>
> Or, better directly return sx9500_init_comp...
oops. Good point ;)
>
> Daniel.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-iio" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
next prev parent reply other threads:[~2015-05-04 9:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-02 10:29 [PATCH] iio:prox:sx9500 trivial simplification of return path in init function Jonathan Cameron
2015-05-04 9:13 ` Vlad Dogaru
2015-05-04 9:22 ` Daniel Baluta
2015-05-04 9:38 ` Jonathan Cameron [this message]
2015-05-04 10:30 ` Jonathan Cameron
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=55473E08.7040102@kernel.org \
--to=jic23@kernel.org \
--cc=daniel.baluta@gmail.com \
--cc=linux-iio@vger.kernel.org \
--cc=vlad.dogaru@intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox