diff options
author | Jiapeng Chong <jiapeng.chong@linux.alibaba.com> | 2021-02-18 11:16:11 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-03-19 03:18:09 +0100 |
commit | 59f90f5e6c80a46ac5c19d11830b07a0ebd714af (patch) | |
tree | 3e0963914a8087a14ce5092f0d335a877958f3e5 /drivers/scsi/mvumi.c | |
parent | scsi: mpt3sas: Update driver version to 37.101.00.00 (diff) | |
download | linux-59f90f5e6c80a46ac5c19d11830b07a0ebd714af.tar.xz linux-59f90f5e6c80a46ac5c19d11830b07a0ebd714af.zip |
scsi: mvumi: Use true and false for bool variable
Fix the following coccicheck warnings:
./drivers/scsi/mvumi.c:69:9-10: WARNING: return of 0/1 in function
'tag_is_empty' with return type bool.
Link: https://lore.kernel.org/r/1613643371-122635-1-git-send-email-jiapeng.chong@linux.alibaba.com
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to '')
-rw-r--r-- | drivers/scsi/mvumi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/mvumi.c b/drivers/scsi/mvumi.c index 71b6a1f834cd..7cc1143ab9b0 100644 --- a/drivers/scsi/mvumi.c +++ b/drivers/scsi/mvumi.c @@ -66,9 +66,9 @@ static void tag_release_one(struct mvumi_hba *mhba, struct mvumi_tag *st, static bool tag_is_empty(struct mvumi_tag *st) { if (st->top == 0) - return 1; + return true; else - return 0; + return false; } static void mvumi_unmap_pci_addr(struct pci_dev *dev, void **addr_array) |