]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
scsi: NCR5380: Return false instead of NULL
authorFinn Thain <fthain@telegraphics.com.au>
Wed, 24 Oct 2018 07:45:33 +0000 (18:45 +1100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 6 Nov 2018 03:47:38 +0000 (22:47 -0500)
I overlooked this statement when I recently converted the function result
type from struct scsi_cmnd * to bool. No change to object code.

Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/NCR5380.c

index 8429c855701fca200b56df1453a4fc5188a9a38e..01c23d27f290b114c3f9e0b20b713edd30e2d884 100644 (file)
@@ -1198,7 +1198,7 @@ static bool NCR5380_select(struct Scsi_Host *instance, struct scsi_cmnd *cmd)
 
 out:
        if (!hostdata->selecting)
-               return NULL;
+               return false;
        hostdata->selecting = NULL;
        return ret;
 }