scsi: fix integer as NULL pointer warning
drivers/scsi/aha152x.c:3585:60: warning: Using plain integer as NULL pointer drivers/scsi/aha152x.c:3845:56: warning: Using plain integer as NULL pointer drivers/scsi/qla1280.c:2814:37: warning: Using plain integer as NULL pointer drivers/scsi/atp870u.c:750:47: warning: Using plain integer as NULL pointer drivers/scsi/3w-9xxx.c:1281:36: warning: Using plain integer as NULL pointer drivers/scsi/3w-9xxx.c:1293:36: warning: Using plain integer as NULL pointer drivers/scsi/3w-9xxx.c:1301:35: warning: Using plain integer as NULL pointer drivers/scsi/hptiop.c:447:10: warning: Using plain integer as NULL pointer drivers/scsi/hptiop.c:457:10: warning: Using plain integer as NULL pointer drivers/scsi/hptiop.c:479:24: warning: Using plain integer as NULL pointer drivers/scsi/hptiop.c:483:22: warning: Using plain integer as NULL pointer drivers/scsi/hptiop.c:1213:23: warning: Using plain integer as NULL pointer drivers/scsi/hptiop.c:1214:23: 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>
This commit is contained in:

committed by
Linus Torvalds

parent
94b5e0ac69
commit
9bcf091083
@@ -3582,7 +3582,7 @@ static int checksetup(struct aha152x_setup *setup)
|
||||
if (i == ARRAY_SIZE(ports))
|
||||
return 0;
|
||||
|
||||
if ( request_region(setup->io_port, IO_RANGE, "aha152x")==0 ) {
|
||||
if (!request_region(setup->io_port, IO_RANGE, "aha152x")) {
|
||||
printk(KERN_ERR "aha152x: io port 0x%x busy.\n", setup->io_port);
|
||||
return 0;
|
||||
}
|
||||
@@ -3842,7 +3842,7 @@ static int __init aha152x_init(void)
|
||||
if ((setup_count == 1) && (setup[0].io_port == ports[i]))
|
||||
continue;
|
||||
|
||||
if ( request_region(ports[i], IO_RANGE, "aha152x")==0 ) {
|
||||
if (!request_region(ports[i], IO_RANGE, "aha152x")) {
|
||||
printk(KERN_ERR "aha152x: io port 0x%x busy.\n", ports[i]);
|
||||
continue;
|
||||
}
|
||||
|
Reference in New Issue
Block a user