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/aic7xxx | |
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/aic7xxx')
-rw-r--r-- | drivers/scsi/aic7xxx/aic7770_osm.c | 2 | ||||
-rw-r--r-- | drivers/scsi/aic7xxx/aic7xxx_osm_pci.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/aic7xxx/aic7770_osm.c b/drivers/scsi/aic7xxx/aic7770_osm.c index 1ac119733bac..f220e5e436ab 100644 --- a/drivers/scsi/aic7xxx/aic7770_osm.c +++ b/drivers/scsi/aic7xxx/aic7770_osm.c | |||
@@ -50,7 +50,7 @@ aic7770_map_registers(struct ahc_softc *ahc, u_int port) | |||
50 | /* | 50 | /* |
51 | * Lock out other contenders for our i/o space. | 51 | * Lock out other contenders for our i/o space. |
52 | */ | 52 | */ |
53 | if (request_region(port, AHC_EISA_IOSIZE, "aic7xxx") == 0) | 53 | if (!request_region(port, AHC_EISA_IOSIZE, "aic7xxx")) |
54 | return (ENOMEM); | 54 | return (ENOMEM); |
55 | ahc->tag = BUS_SPACE_PIO; | 55 | ahc->tag = BUS_SPACE_PIO; |
56 | ahc->bsh.ioport = port; | 56 | ahc->bsh.ioport = port; |
diff --git a/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c b/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c index 0d7628f1f1ef..00f5b9868574 100644 --- a/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c +++ b/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c | |||
@@ -352,7 +352,7 @@ ahc_linux_pci_reserve_io_region(struct ahc_softc *ahc, resource_size_t *base) | |||
352 | *base = pci_resource_start(ahc->dev_softc, 0); | 352 | *base = pci_resource_start(ahc->dev_softc, 0); |
353 | if (*base == 0) | 353 | if (*base == 0) |
354 | return (ENOMEM); | 354 | return (ENOMEM); |
355 | if (request_region(*base, 256, "aic7xxx") == 0) | 355 | if (!request_region(*base, 256, "aic7xxx")) |
356 | return (ENOMEM); | 356 | return (ENOMEM); |
357 | return (0); | 357 | return (0); |
358 | } | 358 | } |
@@ -369,7 +369,7 @@ ahc_linux_pci_reserve_mem_region(struct ahc_softc *ahc, | |||
369 | start = pci_resource_start(ahc->dev_softc, 1); | 369 | start = pci_resource_start(ahc->dev_softc, 1); |
370 | if (start != 0) { | 370 | if (start != 0) { |
371 | *bus_addr = start; | 371 | *bus_addr = start; |
372 | if (request_mem_region(start, 0x1000, "aic7xxx") == 0) | 372 | if (!request_mem_region(start, 0x1000, "aic7xxx")) |
373 | error = ENOMEM; | 373 | error = ENOMEM; |
374 | if (error == 0) { | 374 | if (error == 0) { |
375 | *maddr = ioremap_nocache(start, 256); | 375 | *maddr = ioremap_nocache(start, 256); |