From: Yoann Padioleau Date: Fri, 27 Jul 2007 09:44:42 +0000 (+0200) Subject: [IA64] Compare pointer against NULL, not '0' X-Git-Tag: v2.6.23-rc2~183 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e4dcd22efa7d24f637ab2ea3a77dd65774eb005;p=linux-2.6 [IA64] Compare pointer against NULL, not '0' When comparing a pointer, it's clearer to compare it to NULL than to 0. Signed-off-by: Yoann Padioleau Signed-off-by: Tony Luck --- diff --git a/arch/ia64/hp/sim/simscsi.c b/arch/ia64/hp/sim/simscsi.c index bb87682bbb..64248b58f6 100644 --- a/arch/ia64/hp/sim/simscsi.c +++ b/arch/ia64/hp/sim/simscsi.c @@ -101,7 +101,7 @@ simscsi_interrupt (unsigned long val) { struct scsi_cmnd *sc; - while ((sc = queue[rd].sc) != 0) { + while ((sc = queue[rd].sc) != NULL) { atomic_dec(&num_reqs); queue[rd].sc = NULL; if (DBG)