From: David Gibson <hermes@gibson.dropbear.id.au>
To: Francois Romieu <romieu@fr.zoreil.com>
Cc: Jeff Garzik <jgarzik@pobox.com>, Andrew Morton <akpm@osdl.org>,
Pavel Roskin <proski@gnu.org>,
orinoco-deve@lists.sourceforge.net, linux-kernel@vger.kernel.org
Subject: Re: Another trivial orinoco update
Date: Thu, 4 Nov 2004 11:36:42 +1100 [thread overview]
Message-ID: <20041104003642.GA10969@zax> (raw)
In-Reply-To: <20041103211738.GA14377@electric-eye.fr.zoreil.com>
On Wed, Nov 03, 2004 at 10:17:38PM +0100, Francois Romieu wrote:
> David Gibson <hermes@gibson.dropbear.id.au> :
> [...]
> > This patch alters the convention with which orinoco_lock() is invoked
> > in the orinoco driver. This should cause no behavioural change, but
> > reduces meaningless diffs between the mainline and CVS version of the
> > driver. Another small step towards a merge.
>
> Afaics orinico_lock returns a nice status code. Let alone the merge
> argument (which could be solved in the CVS tree as well), is there a
> technical reason for this patch ?
orinoco_lock() only ever returns either 0 or -EBUSY, so it's
essentially boolean. There's no reason to expect it would ever return
anything else. Using it in if statements directly removes a few lines
of code, removes the need for a few extra 'err' variables, and makes
things slightly neater in the case where just propagating the -EBUSY
up isn't the right thing to do. It's no big deal, but we did make
this change in CVS for a reason.
--
David Gibson | For every complex problem there is a
david AT gibson.dropbear.id.au | solution which is simple, neat and
| wrong.
http://www.ozlabs.org/people/dgibson
next prev parent reply other threads:[~2004-11-04 1:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-03 3:44 Another trivial orinoco update David Gibson
2004-11-03 21:17 ` Francois Romieu
2004-11-04 0:36 ` David Gibson [this message]
2005-01-07 4:05 ` Jeff Garzik
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=20041104003642.GA10969@zax \
--to=hermes@gibson.dropbear.id.au \
--cc=akpm@osdl.org \
--cc=jgarzik@pobox.com \
--cc=linux-kernel@vger.kernel.org \
--cc=orinoco-deve@lists.sourceforge.net \
--cc=proski@gnu.org \
--cc=romieu@fr.zoreil.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.