Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=1e4dcd22efa7d24f637ab2ea3a77dd65774eb005
Commit:     1e4dcd22efa7d24f637ab2ea3a77dd65774eb005
Parent:     7a6c813594c9eb25a9afbcbd30c9865e38ee6f39
Author:     Yoann Padioleau <[EMAIL PROTECTED]>
AuthorDate: Fri Jul 27 11:44:42 2007 +0200
Committer:  Tony Luck <[EMAIL PROTECTED]>
CommitDate: Fri Jul 27 15:40:42 2007 -0700

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: Tony Luck <[EMAIL PROTECTED]>
---
 arch/ia64/hp/sim/simscsi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/ia64/hp/sim/simscsi.c b/arch/ia64/hp/sim/simscsi.c
index bb87682..64248b5 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)
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to