From: "Jörn Engel" <joern@wohnheim.fh-wedel.de>
To: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Christoph Hellwig <hch@infradead.org>,
linux-kernel@vger.kernel.org, torvalds@transmeta.com
Subject: Re: [PATCH] s390 update (4/9): common i/o layer update.
Date: Wed, 26 Mar 2003 17:37:32 +0100 [thread overview]
Message-ID: <20030326163732.GK20098@wohnheim.fh-wedel.de> (raw)
In-Reply-To: <OF53EAB661.698F04AC-ONC1256CF5.0059F8AC@de.ibm.com>
On Wed, 26 March 2003 17:27:23 +0100, Martin Schwidefsky wrote:
>
> > > + if (sch->lpm == 0)
> > > + return -ENODEV;
> > > + else
> > > + return -EACCES;
> >
> > I'd write this as return (sch->lpm ? -EACCES : -ENODEV), but maybe I'm
> > just too picky..
> No, you are not. return (sch->lpm ? -EACCES : -ENODEV) is better.
Are the brackets really necessary? This is highly personal, but I
spend a few second "stubling" over them, which makes the code less
readable for me.
Jörn
--
With a PC, I always felt limited by the software available. On Unix,
I am limited only by my knowledge.
-- Peter J. Schoenster
next prev parent reply other threads:[~2003-03-26 16:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-26 16:27 Martin Schwidefsky
2003-03-26 16:37 ` Jörn Engel [this message]
2003-03-26 16:47 ` Francis Galiegue
2003-03-26 20:05 ` Christoph Hellwig
[not found] <20030326153033$579e@gated-at.bofh.it>
[not found] ` <20030326161014$2d93@gated-at.bofh.it>
2003-03-26 23:47 ` Arnd Bergmann
-- strict thread matches above, loose matches on Subject: below --
2003-03-26 15:10 Martin Schwidefsky
2003-03-26 16:08 ` Christoph Hellwig
2003-03-26 22:18 ` Henning P. Schmiedehausen
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=20030326163732.GK20098@wohnheim.fh-wedel.de \
--to=joern@wohnheim.fh-wedel.de \
--cc=hch@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=schwidefsky@de.ibm.com \
--cc=torvalds@transmeta.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
all inboxes | Powered by JetHome®