mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: davidsen@tmr.com (bill davidsen)
To: linux-kernel@vger.kernel.org
Subject: Re: if (a & X || b & ~Y) in dasd.c
Date: Mon, 19 Nov 2001 13:40:45 -0500	[thread overview]
Message-ID: <200111191840.fAJIej230821@deathstar.prodigy.com> (raw)
In-Reply-To: <20011108155749.A24023@devserv.devel.redhat.com>

In article <20011108155749.A24023@devserv.devel.redhat.com> zaitcev@redhat.com wrote:
>Carsten and others:
>
>this code in 2.2.14 looks suspicious to me:
>
>./drivers/s390/block/dasd.c:
>        /* first of all lets try to find out the appropriate era_action */
>        if (stat->flag & DEVSTAT_FLAG_SENSE_AVAIL ||
>            stat->dstat & ~(DEV_STAT_CHN_END | DEV_STAT_DEV_END)) {

  If the code does what I think it does, it works as written. However, I
usually would throw in parenthesis on something like this to be sure
that the next person reading the code won't waste time thinking about
it. I always thought that good code was literature, which could be read,
understood, and enjoyed by many.

-- 
bill davidsen <davidsen@tmr.com>
  His first management concern is not solving the problem, but covering
his ass. If he lived in the middle ages he'd wear his codpiece backward.

  parent reply	other threads:[~2001-11-19 18:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-08 20:57 Pete Zaitcev
2001-11-08 21:10 ` Kevin
2001-11-08 21:18 ` Jonathan Lundell
2001-11-08 21:28 ` Richard B. Johnson
2001-11-19 18:40 ` bill davidsen [this message]
2001-11-19 19:38   ` Peter T. Breuer
2001-11-21  6:57   ` Stevie O
2001-11-09 10:29 Carsten Otte

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=200111191840.fAJIej230821@deathstar.prodigy.com \
    --to=davidsen@tmr.com \
    --cc=linux-kernel@vger.kernel.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 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®