forked from Minki/linux
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>
This commit is contained in:
parent
37067b9793
commit
59f90f5e6c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user