All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@cam.ac.uk>
To: Maxin B John <maxin.john@gmail.com>
Cc: Maxin B John
	<public-maxin.john-Re5JQEeQqe8AvxtiuMwx3w@plane.gmane.org>,
	Jonathan Cameron
	<public-jic23-KWPb1pKIrIJaa/9Udqfwiw@plane.gmane.org>,
	Dan Carpenter
	<public-error27-Re5JQEeQqe8AvxtiuMwx3w@plane.gmane.org>,
	Bryan Freed
	<public-bfreed-F7+t8E8rja9g9hUCZPvPmw@plane.gmane.org>,
	public-linux-kernel-u79uwXL29TY76Z2rM5mHXA@plane.gmane.org,
	Greg Kroah-Hartman <public-gregkh-l3A5Bk7waGM@plane.gmane.org>,
	public-linux-iio-u79uwXL29TY76Z2rM5mHXA@plane.gmane.org,
	Arnd Bergmann <public-arnd-r2nGTMty4D4@plane.gmane.org>,
	public-devel-gWbeCf7V1WCQmaza687I9mD2FQJk+8+b@plane.gmane.org,
	Amit Kucheria
	<public-amit.kucheria-LY4KaoCqKrnby3iVrkZq2A@plane.gmane.org>
Subject: Re: [PATCH] staging: iio: light: Fix compiler warning in tsl2563.c
Date: Mon, 24 Oct 2011 10:15:08 +0100	[thread overview]
Message-ID: <4EA52C9C.7080402@cam.ac.uk> (raw)
In-Reply-To: <CAMhs6Yz6B_imMAthjjpymXj1garYzjFdzXfEArUwztmpgL4_hg@mail.gmail.com>



On 10/24/11 10:03, Maxin B John wrote:
> Hi,
> 
> On Mon, Oct 24, 2011 at 11:51 AM, Jonathan Cameron <jic23@cam.ac.uk> wrote:
>>
>>
>> On 10/22/11 06:15, Maxin B John wrote:
>>> Hi,
>>>
>>> On Fri, Sep 2, 2011 at 1:55 PM, Jonathan Cameron <jic23-KWPb1pKIrIJaa/9Udqfwiw@public.gmane.org> wrote:
>>>> On 09/02/11 10:41, Maxin B. John wrote:
>>>>>> Don't overwrite the error code.  For example, the lower layers can
>>>>>> return -EAGAIN and that's more useful than just returning -EIO every
>>>>>> time.
>>>>> Ahh.. Thanks a lot for explaining this.
>>>>>
>>>>>> Your fix works, but it's not very clean.  Just add a "*id = ret;"
>>>>>> line before the "return 0;" and that's it.  (It doesn't make sense
>>>>>> to pass a pointer to "id" and not use it).
>>>>> Dan, yes, I agree with you. This fix is much much better than what I
>>>>> had in my mind.
>>>>>
>>>>>> Yikes - I wonder why my various compilers don't throw that up.
>>>>> I guess, in "iio-blue.git" tree, the 'id = 0' suppresses this warning.
>>>> That'd do it. oops.
>>>>
>>>> Ideally keep the white space but doesn't really matter. Either send on
>>>> to Greg directly or I'll add it to iio-blue and send on with the next fixes
>>>> series - probably this afternoon.
>>>>>
>>>>> Signed-off-by: Maxin B. John <maxin.john-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
>>>> Acked-by: Jonathan Cameron <jic23-KWPb1pKIrIJaa/9Udqfwiw@public.gmane.org>
>>>>
>>>
>>> Sorry for the delay in replying to this mail. I am curious about the
>>> status of this patch. I couldn't locate this patch at  iio-blue.git as
>>> it is not present in kernel.org now
>>> (http://git.kernel.org/?p=linux/kernel/git/jic23/iio-blue.git;a=summary)
>>> Please ignore this mail if you have already added this patch to your tree.
>> Ah, sorry I slipped up here and should have noticed it didn't go directly to
>> Greg. Just to check, with everyone I have author as Dan, reporter as Maxin
>> and have signed off myself (it's going through my tree anyway now).
>>
>> I think from looking back it was Dan's suggestion in response to Maxin's
>> patch.  Hence convention would be a sign off from Dan and perhaps an
>> Ack from Maxin?
> 
> Sounds good to me.
> 
> Acked-by: Maxin B. John <maxin.john@gmail.com>
> 
As Dan reckon's you are the author I'll switch that to a signed-off by.





  parent reply	other threads:[~2011-10-24  9:15 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-02  9:41 [PATCH] staging: iio: light: Fix compiler warning in tsl2563.c Maxin B. John
2011-09-02 10:55 ` Jonathan Cameron
2011-10-22  5:15   ` Maxin B John
2011-10-22  5:15     ` Maxin B John
2011-10-24  8:51     ` Jonathan Cameron
2011-10-24  8:51       ` Jonathan Cameron
     [not found]       ` <20111024090143.GB3526@mwanda>
2011-10-24  9:14         ` Jonathan Cameron
     [not found]       ` <CAMhs6Yz6B_imMAthjjpymXj1garYzjFdzXfEArUwztmpgL4_hg@mail.gmail.com>
2011-10-24  9:15         ` Jonathan Cameron [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-09-01 21:24 Maxin B. John
2011-09-01 21:55 ` Dan Carpenter
2011-09-02  9:11   ` 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=4EA52C9C.7080402@cam.ac.uk \
    --to=jic23@cam.ac.uk \
    --cc=maxin.john@gmail.com \
    --cc=public-amit.kucheria-LY4KaoCqKrnby3iVrkZq2A@plane.gmane.org \
    --cc=public-arnd-r2nGTMty4D4@plane.gmane.org \
    --cc=public-bfreed-F7+t8E8rja9g9hUCZPvPmw@plane.gmane.org \
    --cc=public-devel-gWbeCf7V1WCQmaza687I9mD2FQJk+8+b@plane.gmane.org \
    --cc=public-error27-Re5JQEeQqe8AvxtiuMwx3w@plane.gmane.org \
    --cc=public-gregkh-l3A5Bk7waGM@plane.gmane.org \
    --cc=public-jic23-KWPb1pKIrIJaa/9Udqfwiw@plane.gmane.org \
    --cc=public-linux-iio-u79uwXL29TY76Z2rM5mHXA@plane.gmane.org \
    --cc=public-linux-kernel-u79uwXL29TY76Z2rM5mHXA@plane.gmane.org \
    --cc=public-maxin.john-Re5JQEeQqe8AvxtiuMwx3w@plane.gmane.org \
    /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.