From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Return-Path: Date: Fri, 20 Jul 2018 07:54:17 +0800 From: kbuild test robot To: Alexandru Gagniuc Cc: kbuild-all@01.org, linux-pci@vger.kernel.org, Bjorn Helgaas Subject: [PATCH] PCI/AER: fix boolreturn.cocci warnings Message-ID: <20180719235417.GA7720@athens> References: <201807200714.M8pIgh8M%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <201807200714.M8pIgh8M%fengguang.wu@intel.com> List-ID: From: kbuild test robot drivers/pci/pcie/aer.c:349:9-10: WARNING: return of 0/1 in function 'aer_acpi_firmware_first' 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 Fixes: 69c7f453d545 ("PCI/AER: Honor "pcie_ports=native" even if HEST sets FIRMWARE_FIRST") CC: Alexandru Gagniuc Signed-off-by: kbuild test robot --- aer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/pci/pcie/aer.c +++ b/drivers/pci/pcie/aer.c @@ -346,7 +346,7 @@ bool aer_acpi_firmware_first(void) }; if (pcie_ports_native) - return 0; + return false; if (!parsed) { apei_hest_parse(aer_hest_parse, &info);