public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* drivers/char/sysrq.c
@ 2003-05-30 14:44 Margit Schubert-While
  2003-05-30 14:58 ` drivers/char/sysrq.c Jörn Engel
  0 siblings, 1 reply; 7+ messages in thread
From: Margit Schubert-While @ 2003-05-30 14:44 UTC (permalink / raw)
  To: linux-kernel

In drivers/char/sysrq.c (2.4 and 2.5) we have :

         if ((key >= '0') & (key <= '9')) {
                 retval = key - '0';
         } else if ((key >= 'a') & (key <= 'z')) {

Shouldn't the "&" be (pedantically) "&&" ?

Margit 


^ permalink raw reply	[flat|nested] 7+ messages in thread
* drivers/char/sysrq.c
@ 2003-05-30 16:11 Margit Schubert-While
  2003-05-31  3:18 ` drivers/char/sysrq.c Valdis.Kletnieks
  0 siblings, 1 reply; 7+ messages in thread
From: Margit Schubert-While @ 2003-05-30 16:11 UTC (permalink / raw)
  To: linux-kernel

I wonder if there are other places where "&" (or "|") is coded and
"&&" (or "||") is meant (or vice-versa) where the result is NOT semantically
the same :-)
It'll take a good checker to sort that one!

Margit


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-05-31  3:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-30 14:44 drivers/char/sysrq.c Margit Schubert-While
2003-05-30 14:58 ` drivers/char/sysrq.c Jörn Engel
2003-05-30 15:13   ` drivers/char/sysrq.c J.A. Magallon
2003-05-30 18:01     ` drivers/char/sysrq.c Jörn Engel
2003-05-30 20:24     ` drivers/char/sysrq.c H. Peter Anvin
  -- strict thread matches above, loose matches on Subject: below --
2003-05-30 16:11 drivers/char/sysrq.c Margit Schubert-While
2003-05-31  3:18 ` drivers/char/sysrq.c Valdis.Kletnieks

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox