projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a6c813
)
[IA64] Compare pointer against NULL, not '0'
author
Yoann Padioleau
<padator@wanadoo.fr>
Fri, 27 Jul 2007 09:44:42 +0000
(11:44 +0200)
committer
Tony Luck
<tony.luck@intel.com>
Fri, 27 Jul 2007 22:40:42 +0000
(15:40 -0700)
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>
arch/ia64/hp/sim/simscsi.c
patch
|
blob
|
history
diff --git
a/arch/ia64/hp/sim/simscsi.c
b/arch/ia64/hp/sim/simscsi.c
index bb87682bbb1be5862ec767e6088fd0de21f1f068..64248b58f63ffc0801d7bd15769b8d2f7421bb41 100644
(file)
--- 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)