瀏覽代碼

[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 <padator@wanadoo.fr>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Yoann Padioleau 18 年之前
父節點
當前提交
1e4dcd22ef
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      arch/ia64/hp/sim/simscsi.c

+ 1 - 1
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)