Skip to contentSkip to conversation

scsi: mvumi: Use true and false for boolean values

PATCH New Gustavo A. R. Silva 1 participant 1 message Aug 5, 2018 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scsi: mvumi: Use true and false for boolean values

Return statements in functions returning bool should use true or false instead of an integer value.

This code was detected with the help of Coccinelle.

---
 drivers/scsi/mvumi.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/scsi/mvumi.c +2 -2
index b3cd9a6..a1a9787 100644
@@ -82,9 +82,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)
Signature · 1 line
2.7.4