Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3434302pxb; Mon, 16 Nov 2020 14:49:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJx2Y0DJl+M+xw/x2wOA9lOyj9go9gJdKpjvIDXu4bT6/VCz3DpPwCgGkBZG9fO/h6kBblY6 X-Received: by 2002:a17:906:f18f:: with SMTP id gs15mr17748145ejb.474.1605566965969; Mon, 16 Nov 2020 14:49:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605566965; cv=none; d=google.com; s=arc-20160816; b=ELvJn2rqvQBW4Pashipzqyyxn/XvNpv1es5e8lBQ8L1IH/KY7bxIDpvVd12mITuuXc hn5jmpJ80dUzoF61OtYCHtaMnxG28eAJRlWlAd7aVg/EXFMUdVUNF0DATZrZkoRqP4f5 pYnImFmEnlqMje7IUKv2v5PV+2b77YNAi7jTk772lqKIpe52JY3l144eBKcUVvTl85dl 6UbR5LjIYufWssH08v0sPr9qagbWqbFxtQKIOe6kQd2SNu/UeUvPgLeLL9QcQsRCJapt oS3bd1ucAqSHPAaMIrwUejLnhhUqO1Mno7RQVf4F11Jaz3STZgieuMEK/5BnWpOGVrso ngwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:cc:to:subject:from:references :in-reply-to:content-transfer-encoding:mime-version:dkim-signature; bh=NrTn5noD2RYILf8oaQRAWQzOVLQV8yunA3yvmHxuRCs=; b=F3YVsBCzA9Xl1ETixH/nDGOe525QtCCAXbbpnFmQzRrLWQ4NcS+qaZfSufeiT2fPg5 JDqYc2YvrRrkc45j2QZUgKmZ+ef+X01v88mSotDVBI3OZuN/bf/nBFOVV1jNWPe5bu9a TwMj7gWMwqES9m2UJjstwuuneJOSWgP2USLSFnsI9mEgaVc+S3YK7yHwGVcdKHuB77lr xZ7w0yERZ/Cetk5z9TsVMLwT4t2JBaSh1pi5tMo4EFMRqR9KSIQeX1FLkpaqVHumj5Uv p0NjCFk97v1gSMpWX1b3q8y2nW65n+Rj0P0EYRXAlTF6Q2qGSZd26iURrwd9MO6TVvlc aiCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vgmAOVrI; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i5si13187800edn.310.2020.11.16.14.49.03; Mon, 16 Nov 2020 14:49:25 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=vgmAOVrI; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731849AbgKPVPJ (ORCPT + 99 others); Mon, 16 Nov 2020 16:15:09 -0500 Received: from mail.kernel.org ([198.145.29.99]:50960 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725994AbgKPVPG (ORCPT ); Mon, 16 Nov 2020 16:15:06 -0500 Received: from localhost (lfbn-tou-1-1075-236.w90-76.abo.wanadoo.fr [90.76.143.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3795C20888; Mon, 16 Nov 2020 21:15:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605561306; bh=KKKLqy05JpAvCjkxBFWdO5hMPGcadZx9kPhUbI8AJHA=; h=In-Reply-To:References:From:Subject:To:Cc:Date:From; b=vgmAOVrIK2rI8Dv6s6VoLfFghIVyDqzuR7OfxYPgXPJhZ+hBDjcdYC8e54afzzvHV gx6/qMloTBbQA147g6H+LxvAqQ4UhfJmdgXOMDaaxpLFRPE2vDwtoK+QWvwaB6yTzQ aXmEhacgnEle+TUydS51i8KvGTo8/x5vqWHaDML0= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: References: From: Antoine Tenart Subject: Re: [PATCH v2] net: phy: mscc: fix excluded_middle.cocci warnings To: Andrew Lunn , Antoine Tenart , Florian Fainelli , Heiner Kallweit , Jakub Kicinski , Julia Lawall , Russell King Cc: Quentin Schulz , kernel test robot , kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Denis Efremov , netdev@vger.kernel.org Message-ID: <160556130103.369564.5641893167437988724@surface.local> Date: Mon, 16 Nov 2020 22:15:01 +0100 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Julia, Quoting Julia Lawall (2020-11-16 16:34:44) > From: kernel test robot >=20 > Condition !A || A && B is equivalent to !A || B. >=20 > Generated by: scripts/coccinelle/misc/excluded_middle.cocci >=20 > Fixes: b76f0ea01312 ("coccinelle: misc: add excluded_middle.cocci script") > CC: Denis Efremov > Reported-by: kernel test robot > Signed-off-by: kernel test robot > Signed-off-by: Julia Lawall Reviewed-by: Antoine Tenart Thanks! Antoine > --- >=20 > v2: add netdev mailing list >=20 > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.gi= t master > head: e28c0d7c92c89016c12a677616668957351e7542 > commit: b76f0ea013125358d1b4ca147a6f9b6883dd2493 coccinelle: misc: add ex= cluded_middle.cocci script > :::::: branch date: 8 hours ago > :::::: commit date: 8 weeks ago >=20 > Please take the patch only if it's a positive warning. Thanks! >=20 > mscc_ptp.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > --- a/drivers/net/phy/mscc/mscc_ptp.c > +++ b/drivers/net/phy/mscc/mscc_ptp.c > @@ -136,7 +136,7 @@ static void vsc85xx_ts_write_csr(struct >=20 > phy_ts_base_write(phydev, MSCC_EXT_PAGE_ACCESS, MSCC_PHY_PAGE_158= 8); >=20 > - if (!cond || (cond && upper)) > + if (!cond || upper) > phy_ts_base_write(phydev, MSCC_PHY_TS_CSR_DATA_MSB, upper= ); >=20 > phy_ts_base_write(phydev, MSCC_PHY_TS_CSR_DATA_LSB, lower);