summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHuilong Deng <denghuilong@cdjrlc.com>2021-08-11 07:36:15 +0300
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2021-08-12 17:04:17 +0300
commit4d2ee1be4c2a5552f083b6d7db4be224f96313b5 (patch)
tree9cb33aa8f84921f02f5921c9802fddd8175cbaa6
parent3f66601ef3f3e336c1f8181f183001b58be62067 (diff)
downloadlinux-4d2ee1be4c2a5552f083b6d7db4be224f96313b5.tar.xz
MIPS: generic: Return true/false (not 1/0) from bool functions
./arch/mips/generic/board-ocelot.c:29:9-10: WARNING: return of 0/1 in function 'ocelot_detect' with return type bool Signed-off-by: Huilong Deng <denghuilong@cdjrlc.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
-rw-r--r--arch/mips/generic/board-ocelot.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/mips/generic/board-ocelot.c b/arch/mips/generic/board-ocelot.c
index c238e95190ac..7115410acb4f 100644
--- a/arch/mips/generic/board-ocelot.c
+++ b/arch/mips/generic/board-ocelot.c
@@ -26,13 +26,13 @@ static __init bool ocelot_detect(void)
tlb_probe_hazard();
idx = read_c0_index();
if (idx < 0)
- return 0;
+ return false;
/* A TLB entry exists, lets assume its usable and check the CHIP ID */
rev = __raw_readl((void __iomem *)DEVCPU_GCB_CHIP_REGS_CHIP_ID);
if ((rev & CHIP_ID_PART_ID) != OCELOT_PART_ID)
- return 0;
+ return false;
/* Copy command line from bootloader early for Initrd detection */
if (fw_arg0 < 10 && (fw_arg1 & 0xFFF00000) == 0x80000000) {
@@ -44,7 +44,7 @@ static __init bool ocelot_detect(void)
strcpy(arcs_cmdline, prom_argv[1]);
}
- return 1;
+ return true;
}
static void __init ocelot_earlyprintk_init(void)