drivers/scsi/hpsa.c:3473:9-10: WARNING: return of 0/1 in function 
'hpsa_vpd_page_supported' with return type bool

 Return statements in functions returning bool should use
 true/false instead of 1/0.
Generated by: scripts/coccinelle/misc/boolreturn.cocci

CC: Scott Teel <[email protected]>
Signed-off-by: Fengguang Wu <[email protected]>
---

 hpsa.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

--- a/drivers/scsi/hpsa.c
+++ b/drivers/scsi/hpsa.c
@@ -3470,7 +3470,7 @@ static bool hpsa_vpd_page_supported(stru
 
        buf = kzalloc(256, GFP_KERNEL);
        if (!buf)
-               return 0;
+               return false;
 
        /* Get the size of the page list first */
        rc = hpsa_scsi_do_inquiry(h, scsi3addr,
@@ -3497,10 +3497,10 @@ static bool hpsa_vpd_page_supported(stru
                        goto exit_supported;
 exit_unsupported:
        kfree(buf);
-       return 0;
+       return false;
 exit_supported:
        kfree(buf);
-       return 1;
+       return true;
 }
 
 static void hpsa_get_ioaccel_status(struct ctlr_info *h,
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to