From: David Gibson <david@gibson.dropbear.id.au>
To: "Andreas Färber" <afaerber@suse.de>
Cc: scottwood@freescale.com, peter.maydell@linaro.org,
qemu-ppc@nongnu.org, agraf@suse.de, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] sysbus: Remove ignored return value of FindSysbusDeviceFunc
Date: Tue, 19 Jan 2016 11:37:12 +1100 [thread overview]
Message-ID: <20160119003712.GS9301@voom.fritz.box> (raw)
In-Reply-To: <569D24AA.6010507@suse.de>
[-- Attachment #1: Type: text/plain, Size: 1179 bytes --]
On Mon, Jan 18, 2016 at 06:45:14PM +0100, Andreas Färber wrote:
> Am 18.01.2016 um 05:39 schrieb David Gibson:
> > Functions of type FindSysbusDeviceFunc currently return an integer. I
> > recently made an error in a patch because I assumed that this return value
> > would control whether iteration of the function across devices continues
> > or not. In fact, the function's return value is always ignored.
> >
> > This changes the function type to return void, so that others don't make
> > the same mistake.
>
> Have you considered implementing the behavior you expected? :)
> Not necessary for your use case or too complicated?
A bit of both.
> > Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
> > ---
> >
> > Please apply.
>
> Patch looks okay, too short notice for today's pull though.
> Usually we avoid "I" in a commit message.
True, that probably won't make so much sense sitting in the commit
history. I'll reword and resend.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
prev parent reply other threads:[~2016-01-19 0:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1453091992-961-1-git-send-email-david@gibson.dropbear.id.au>
2016-01-18 17:45 ` [Qemu-devel] [PATCH] sysbus: Remove ignored return value of FindSysbusDeviceFunc Andreas Färber
2016-01-19 0:37 ` David Gibson [this message]
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=20160119003712.GS9301@voom.fritz.box \
--to=david@gibson.dropbear.id.au \
--cc=afaerber@suse.de \
--cc=agraf@suse.de \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=scottwood@freescale.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;
as well as URLs for NNTP newsgroup(s).