From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5F13DC433F5 for ; Fri, 29 Oct 2021 15:35:37 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2D48C60F23 for ; Fri, 29 Oct 2021 15:35:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 2D48C60F23 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=EajHfycuKmnvqfn6upL9oTb/bzpsPG20f+/JVhhGbAU=; b=E/RcF1hG2lDTJ8 YxP4B/e/zpWA9lIFAwya4hlEJHzDk9HjnP88IX70+VJ8fWmVfMjIrq77Kx5MCUWZKK2D1yO03yh9G FV3eyCeRZCxyV33Ylq8zLfmpHVNSba3thM2pEko4eV3gQZqyFH8QS1qDf5nVmQwvKCTMi/QZSl4Fm 1VAnnoDMKTvEBijmPoCV4hU509U4Aai8dAb3STr11hFACKe9H5m7Ezf7IyGhCWi00lzmhvqTwoXiM LfWfamyoAW0FPqk2I1gESvehanFCaiPDGO+E6rosrkXaZlFkOnBYxuurl+rVjlZTSqKIuy9GXBBav bIV92Enq14GvGSQnOvQQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mgTta-00BMTM-OK; Fri, 29 Oct 2021 15:34:18 +0000 Received: from mga12.intel.com ([192.55.52.136]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mgTtQ-00BMRb-0E for linux-arm-kernel@lists.infradead.org; Fri, 29 Oct 2021 15:34:09 +0000 X-IronPort-AV: E=McAfee;i="6200,9189,10151"; a="210740001" X-IronPort-AV: E=Sophos;i="5.87,193,1631602800"; d="scan'208";a="210740001" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Oct 2021 08:34:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,193,1631602800"; d="scan'208";a="448402110" Received: from lkp-server02.sh.intel.com (HELO c20d8bc80006) ([10.239.97.151]) by orsmga003.jf.intel.com with ESMTP; 29 Oct 2021 08:34:00 -0700 Received: from kbuild by c20d8bc80006 with local (Exim 4.92) (envelope-from ) id 1mgTtH-0000RY-S3; Fri, 29 Oct 2021 15:33:59 +0000 Date: Fri, 29 Oct 2021 23:33:52 +0800 From: kernel test robot To: Rob Herring , Catalin Marinas , Will Deacon Cc: kbuild-all@lists.01.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Mark Rutland Subject: [PATCH] arm64: fix boolconv.cocci warnings Message-ID: <20211029153352.GA69389@7705b72ac8e7> References: <20211028183355.360731-1-robh@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20211028183355.360731-1-robh@kernel.org> X-Patchwork-Hint: ignore User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211029_083408_082800_06D4720C X-CRM114-Status: GOOD ( 12.61 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: kernel test robot arch/arm64/kernel/acpi.c:71:26-31: WARNING: conversion to bool not needed here 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 = initial_boot_params; int node = fdt_node_offset_by_compatible(fdt, -1, "arm,armv8-timer"); - return node > 0 ? true : false; + return node > 0; } /* _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel