Skip to content

Commit

Permalink
[IA64] Compare pointer against NULL, not '0'
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Yoann Padioleau authored and Tony Luck committed Jul 27, 2007
1 parent 7a6c813 commit 1e4dcd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/ia64/hp/sim/simscsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1e4dcd2

Please sign in to comment.