Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os 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>

authored by

Jiapeng Chong and committed by
Martin K. Petersen
59f90f5e 37067b97

+2 -2
+2 -2
drivers/scsi/mvumi.c
··· 66 66 static bool tag_is_empty(struct mvumi_tag *st) 67 67 { 68 68 if (st->top == 0) 69 - return 1; 69 + return true; 70 70 else 71 - return 0; 71 + return false; 72 72 } 73 73 74 74 static void mvumi_unmap_pci_addr(struct pci_dev *dev, void **addr_array)