diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-04-28 19:50:03 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-28 20:31:13 -0400 |
commit | 172c122df5186e7cbd413d61757ff90267331002 (patch) | |
tree | 03a7899b518d57180630b30014377198cd4cb5c8 /drivers/scsi/sym53c8xx_2 | |
parent | 8ab68ab420d5fc084b8cdd76a72df72c5e1cdb5d (diff) |
scsi: fix integer as NULL pointer warnings
drivers/scsi/aic7xxx/aic7770_osm.c:53:58: warning: Using plain integer as NULL pointer
drivers/scsi/aic7xxx/aic7xxx_osm_pci.c:355:47: warning: Using plain integer as NULL pointer
drivers/scsi/aic7xxx/aic7xxx_osm_pci.c:372:55: warning: Using plain integer as NULL pointer
drivers/scsi/aha152x.c:997:28: warning: Using plain integer as NULL pointer
drivers/scsi/aha152x.c:1003:28: warning: Using plain integer as NULL pointer
drivers/scsi/aha152x.c:1165:46: warning: Using plain integer as NULL pointer
drivers/scsi/fdomain.c:1446:40: warning: Using plain integer as NULL pointer
drivers/scsi/sym53c8xx_2/sym_hipd.c:1650:51: warning: Using plain integer as NULL pointer
drivers/scsi/sym53c8xx_2/sym_hipd.c:3171:42: warning: Using plain integer as NULL pointer
drivers/scsi/sym53c8xx_2/sym_hipd.c:5732:52: warning: Using plain integer as NULL pointer
drivers/scsi/ncr53c8xx.c:8189:31: warning: Using plain integer as NULL pointer
drivers/scsi/ncr53c8xx.c:8225:34: warning: Using plain integer as NULL pointer
drivers/scsi/dpt_i2o.c:156:32: warning: Using plain integer as NULL pointer
drivers/scsi/ultrastor.c:954:42: warning: Using plain integer as NULL pointer
drivers/scsi/ultrastor.c:1104:18: warning: Using plain integer as NULL pointer
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/scsi/sym53c8xx_2')
-rw-r--r-- | drivers/scsi/sym53c8xx_2/sym_hipd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/sym53c8xx_2/sym_hipd.c b/drivers/scsi/sym53c8xx_2/sym_hipd.c index 35142b5341b5..22a6aae78699 100644 --- a/drivers/scsi/sym53c8xx_2/sym_hipd.c +++ b/drivers/scsi/sym53c8xx_2/sym_hipd.c | |||
@@ -1647,7 +1647,7 @@ static void sym_flush_comp_queue(struct sym_hcb *np, int cam_status) | |||
1647 | SYM_QUEHEAD *qp; | 1647 | SYM_QUEHEAD *qp; |
1648 | struct sym_ccb *cp; | 1648 | struct sym_ccb *cp; |
1649 | 1649 | ||
1650 | while ((qp = sym_remque_head(&np->comp_ccbq)) != 0) { | 1650 | while ((qp = sym_remque_head(&np->comp_ccbq)) != NULL) { |
1651 | struct scsi_cmnd *cmd; | 1651 | struct scsi_cmnd *cmd; |
1652 | cp = sym_que_entry(qp, struct sym_ccb, link_ccbq); | 1652 | cp = sym_que_entry(qp, struct sym_ccb, link_ccbq); |
1653 | sym_insque_tail(&cp->link_ccbq, &np->busy_ccbq); | 1653 | sym_insque_tail(&cp->link_ccbq, &np->busy_ccbq); |
@@ -3168,7 +3168,7 @@ int sym_clear_tasks(struct sym_hcb *np, int cam_status, int target, int lun, int | |||
3168 | * the COMP queue and put back other ones into | 3168 | * the COMP queue and put back other ones into |
3169 | * the BUSY queue. | 3169 | * the BUSY queue. |
3170 | */ | 3170 | */ |
3171 | while ((qp = sym_remque_head(&qtmp)) != 0) { | 3171 | while ((qp = sym_remque_head(&qtmp)) != NULL) { |
3172 | struct scsi_cmnd *cmd; | 3172 | struct scsi_cmnd *cmd; |
3173 | cp = sym_que_entry(qp, struct sym_ccb, link_ccbq); | 3173 | cp = sym_que_entry(qp, struct sym_ccb, link_ccbq); |
3174 | cmd = cp->cmd; | 3174 | cmd = cp->cmd; |
@@ -5729,7 +5729,7 @@ void sym_hcb_free(struct sym_hcb *np) | |||
5729 | sym_mfree_dma(np->dqueue, sizeof(u32)*(MAX_QUEUE*2), "DQUEUE"); | 5729 | sym_mfree_dma(np->dqueue, sizeof(u32)*(MAX_QUEUE*2), "DQUEUE"); |
5730 | 5730 | ||
5731 | if (np->actccbs) { | 5731 | if (np->actccbs) { |
5732 | while ((qp = sym_remque_head(&np->free_ccbq)) != 0) { | 5732 | while ((qp = sym_remque_head(&np->free_ccbq)) != NULL) { |
5733 | cp = sym_que_entry(qp, struct sym_ccb, link_ccbq); | 5733 | cp = sym_que_entry(qp, struct sym_ccb, link_ccbq); |
5734 | sym_mfree_dma(cp, sizeof(*cp), "CCB"); | 5734 | sym_mfree_dma(cp, sizeof(*cp), "CCB"); |
5735 | } | 5735 | } |