patch-2.4.22 linux-2.4.22/drivers/char/sysrq.c
Next file: linux-2.4.22/drivers/char/tty_io.c
Previous file: linux-2.4.22/drivers/char/sonypi.h
Back to the patch index
Back to the overall index
-  Lines: 12
-  Date:
2003-08-25 04:44:41.000000000 -0700
-  Orig file: 
linux-2.4.21/drivers/char/sysrq.c
-  Orig date: 
2002-08-02 17:39:43.000000000 -0700
diff -urN linux-2.4.21/drivers/char/sysrq.c linux-2.4.22/drivers/char/sysrq.c
@@ -372,9 +372,9 @@
 /* key2index calculation, -1 on invalid index */
 static __inline__ int sysrq_key_table_key2index(int key) {
 	int retval;
-	if ((key >= '0') & (key <= '9')) {
+	if ((key >= '0') && (key <= '9')) {
 		retval = key - '0';
-	} else if ((key >= 'a') & (key <= 'z')) {
+	} else if ((key >= 'a') && (key <= 'z')) {
 		retval = key + 10 - 'a';
 	} else {
 		retval = -1;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)