Re: [PATCH] s390 update (4/9): common i/o layer update.

From: Jörn Engel (joern@wohnheim.fh-wedel.de)
Date: Wed Mar 26 2003 - 11:37:32 EST


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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Mar 31 2003 - 22:00:24 EST