Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp765696pxy; Wed, 28 Apr 2021 13:50:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyB03X6DdpbQ9hJytARsErTBbpTfXjK/2d5QMcSZmbqk+p4c2Y2b6kx3ryLtCZMhNm4k6JE X-Received: by 2002:a17:906:f283:: with SMTP id gu3mr30733350ejb.91.1619643016067; Wed, 28 Apr 2021 13:50:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619643016; cv=none; d=google.com; s=arc-20160816; b=0b29a7WqTmGr/ufOzYGouPWXv0sRzscVLJY3G8D2u1DCrdiyBaMZeVpG+V0Ad7FiJY 4P4n/Os3L8IyQlZthk06HILv+O7YXf4/gLk4jR11o6z1XMe5bhPUYBgds7S+pp8Mqy+I abL4iDto+cWTN2ePceuJbWCXYJdyAqcxxHOE5MIISMcdeG+Vc7mF7E5YCfnsNdESdfS6 0nqmPE2glnfyVljr0NyKoLrDpQDX6CevdOP8510Tmn0RJfYb21P4tpSeffx3rKGanA8l QNB0mxbu568UiYfcOFPNaiYipqtsZdBlvP7qTOJlFT6StDdpPVV9zKZ/264GL7fPY/tP s9Ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=taqxr/d0mAc/ag6p91Asgh+G+rHAl+TObkQWizX2yaI=; b=wleKV/EXO2X1Pz+3jqYz++Or4xamkUf6Y8tqdfRFYJ2M3YBQYC4vK9NKmpsOscLbRg /XH3MyZivrfy3ssYrMfqfBcWiG8LVNVjn0rdXQhKqvovDAoSq+WeixOVfu4Hj5d3Gg9r HN8Jgwa2wSHLauro3ZjoVruF5kry52cmHXRfZx2E8llXPX0WyAYLYKZsAP7V72Bj2FJQ hYEkrIL4FBL1QrF+EmDTI3PXSU/u2niH2TWD0j/O65ZvNUjp7MOuFBcDZ2pVrpMUbHyJ kTH3Td0SR9prUmYz8CwyvdWIjBxJiXOGYSKv+7esu4P6SP2fchBfQ+fr1K5t0k1X8CJV NrhA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jp4si1095012ejb.420.2021.04.28.13.49.52; Wed, 28 Apr 2021 13:50:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240271AbhD1QLU (ORCPT + 99 others); Wed, 28 Apr 2021 12:11:20 -0400 Received: from mga02.intel.com ([134.134.136.20]:36953 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232024AbhD1QLQ (ORCPT ); Wed, 28 Apr 2021 12:11:16 -0400 IronPort-SDR: 174PuxJWtQsXs/u1lim+JtA8qxJb9zgj0mTdyEhWP82FxDXQIE72cYdKv6hlz/uwsJL7VFS/rw 1/1oWbN+lDiQ== X-IronPort-AV: E=McAfee;i="6200,9189,9968"; a="183920147" X-IronPort-AV: E=Sophos;i="5.82,258,1613462400"; d="scan'208";a="183920147" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Apr 2021 09:07:48 -0700 IronPort-SDR: aQOqERk3LwdAZeJXi+9YUCRxhy/24hWsH0mioCarbME7MrsYOiZgPvNpuzsLquO3AQGhoMaNPz iG0ucQY3q3nA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,258,1613462400"; d="scan'208";a="616081539" Received: from lkp-server01.sh.intel.com (HELO a48ff7ddd223) ([10.239.97.150]) by fmsmga006.fm.intel.com with ESMTP; 28 Apr 2021 09:07:43 -0700 Received: from kbuild by a48ff7ddd223 with local (Exim 4.92) (envelope-from ) id 1lbmj1-0007Bw-15; Wed, 28 Apr 2021 16:07:43 +0000 Date: Thu, 29 Apr 2021 00:07:28 +0800 From: kernel test robot To: "Radu Pirea (NXP OSS)" , andrew@lunn.ch, hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net, kuba@kernel.org, richardcochran@gmail.com Cc: kbuild-all@lists.01.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "Radu Pirea (NXP OSS)" Subject: [PATCH] phy: nxp-c45-tja11xx: fix boolconv.cocci warnings Message-ID: <20210428160728.GA36275@86b226db57a6> References: <20210428123013.127571-3-radu-nicolae.pirea@oss.nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210428123013.127571-3-radu-nicolae.pirea@oss.nxp.com> X-Patchwork-Hint: ignore User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: kernel test robot drivers/net/phy/nxp-c45-tja11xx.c:269:25-30: 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: Radu Pirea (NXP OSS) Reported-by: kernel test robot Signed-off-by: kernel test robot --- url: https://github.com/0day-ci/linux/commits/Radu-Pirea-NXP-OSS/Add-PTP-support-for-TJA1103/20210428-203250 base: a5fb44b89809a00cfb85997529d8430ed0759ea5 nxp-c45-tja11xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/phy/nxp-c45-tja11xx.c +++ b/drivers/net/phy/nxp-c45-tja11xx.c @@ -266,7 +266,7 @@ static int nxp_c45_ptp_adjfine(struct pt u64 subns_inc_val; bool inc; - inc = ppb >= 0 ? true : false; + inc = ppb >= 0; ppb = abs(ppb); subns_inc_val = PPM_TO_SUBNS_INC(ppb);