Skip to content

Commit

Permalink
scsi: mvumi: Use true and false for bool variable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jiapeng Chong authored and Martin K. Petersen committed Mar 19, 2021
1 parent 37067b9 commit 59f90f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/scsi/mvumi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 59f90f5

Please sign in to comment.