Content-Type: multipart/mixed; boundary="===============4675071537886603688==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [PATCH] arm64: fix boolconv.cocci warnings Date: Fri, 29 Oct 2021 23:33:52 +0800 Message-ID: <20211029153352.GA69389@7705b72ac8e7> In-Reply-To: <20211028183355.360731-1-robh@kernel.org> List-Id: --===============4675071537886603688== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: kernel test robot arch/arm64/kernel/acpi.c:71:26-31: WARNING: conversion to bool not needed h= ere Remove unneeded conversion to bool Semantic patch information: Relational and logical operators evaluate to bool, explicit conversion is overly verbose and unneeded. Generated by: scripts/coccinelle/misc/boolconv.cocci CC: Rob Herring Reported-by: kernel test robot Signed-off-by: kernel test robot --- url: https://github.com/0day-ci/linux/commits/Rob-Herring/arm64-Simplify= -checking-for-populated-DT/20211029-023532 base: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for= -next/core :::::: branch date: 21 hours ago :::::: commit date: 21 hours ago acpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/arm64/kernel/acpi.c +++ b/arch/arm64/kernel/acpi.c @@ -68,7 +68,7 @@ static bool __init dt_is_populated(void) const void *fdt =3D initial_boot_params; int node =3D fdt_node_offset_by_compatible(fdt, -1, "arm,armv8-timer"); = - return node > 0 ? true : false; + return node > 0; } = /* --===============4675071537886603688==--