Message ID | 20160910030548.GA243055@lkp-ib03 (mailing list archive) |
---|---|
State | Accepted, archived |
Headers | show |
--- 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,
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 <scott.teel@microsemi.com> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com> --- hpsa.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html