Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp4629483ybz; Tue, 28 Apr 2020 15:13:37 -0700 (PDT) X-Google-Smtp-Source: APiQypKhWVJ4y4sMZ3q1iCIjKWNw+hBx/ap+hEyhqrFkZKWBH/34fL5rOzmZSM9gyxQ7EGvluFe4 X-Received: by 2002:a17:906:68cf:: with SMTP id y15mr25335960ejr.260.1588112017450; Tue, 28 Apr 2020 15:13:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588112017; cv=none; d=google.com; s=arc-20160816; b=p0sTEVbOqFFbMPWjaK7mhQfvDMnDwxS6+ZIZgMpGEO1ALQ88cYUZss5sc5I86llZ/W ss5ql4CvADDDV4t8YAMyYeAnB37RPsVTc9h2WWnSYdbKf4/XPx5xNPVazK5mLwgBIz3M kKx5BcUpeCc6YEYbdE6ul7GcUk1FkudPv/vtc/HbCMw/eL/lokBS8Q7hKU1W3DuD8IH8 9zkXEADxaifs+Upr/a8eP5D/yOlQxAFn+REApDfLwGOoK8omdZANuX27aKc0hDHZOIvi wGiDgge61mQUgPc0o83AmmAvKV/UCx8YQqfywklRxuLfJ5PLAcmTcioI90+nkkckOq6G fotg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=j24eCD7LhLQhgjcsh382STcE2Wkv4GHV8ggnJvCwa+E=; b=KHXjbd5OBeToeZe7Z+qUDZPr7tEssgVN2k6g/K0ROspEW7TpY7ocMv2Zk+szWSLioP QR/Sa0bZy/JHJ0VHQv1Mr2F4sUTfM0OfEfSFQZ2bSd5Iixm2b/AdsXpEPde/5itogQMl fQ0WbOuxhGSX5bFUl0Cq0MtBqEx1T5HBacpAMAe5YWBGuwjnBE9TwYAsCs6dhi6gDdrP PxCjHsL//gxJbKQgZSRNcm7/uLgPx3aPiOkkVwLP7xUHQiRrVzAeJxZRHngVxMeIiaeT k/qwpLIB2cQGi7jcycHkkFgZaRwxej7HuLfILMbLkw6rxPoYs0YTykahblxE8RhU8hX4 SI4Q== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lu23si2747444ejb.200.2020.04.28.15.13.14; Tue, 28 Apr 2020 15:13:37 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726470AbgD1WJG (ORCPT + 99 others); Tue, 28 Apr 2020 18:09:06 -0400 Received: from sauhun.de ([88.99.104.3]:47642 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726286AbgD1WJG (ORCPT ); Tue, 28 Apr 2020 18:09:06 -0400 Received: from localhost (p5486CA03.dip0.t-ipconnect.de [84.134.202.3]) by pokefinder.org (Postfix) with ESMTPSA id 52F2A2C0710; Wed, 29 Apr 2020 00:09:04 +0200 (CEST) Date: Wed, 29 Apr 2020 00:09:04 +0200 From: Wolfram Sang To: Wolfram Sang Cc: linux-i2c@vger.kernel.org, Stefan Wahren , Kamal Dasu , Florian Fainelli , bcm-kernel-feedback-list@broadcom.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH RFT] i2c: brcmstb: properly check NACK condition Message-ID: <20200428220904.GB7698@kunai> References: <20200426081211.10876-1-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="hHWLQfXTYDoKhP50" Content-Disposition: inline In-Reply-To: <20200426081211.10876-1-wsa+renesas@sang-engineering.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --hHWLQfXTYDoKhP50 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Apr 26, 2020 at 10:12:10AM +0200, Wolfram Sang wrote: > From: Wolfram Sang >=20 > cppcheck rightfully complains about: >=20 > drivers/i2c/busses/i2c-brcmstb.c:319:7: warning: Condition 'CMD_RD' is al= ways true [knownConditionTrueFalse] > drivers/i2c/busses/i2c-brcmstb.c:319:17: warning: Condition 'CMD_WR' is a= lways false [knownConditionTrueFalse] > if ((CMD_RD || CMD_WR) && >=20 > Compare the values to the 'cmd' variable. >=20 > Fixes: dd1aa2524bc5 ("i2c: brcmstb: Add Broadcom settop SoC i2c controlle= r driver") > Signed-off-by: Wolfram Sang Applied to for-current, thanks! --hHWLQfXTYDoKhP50 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAl6oqX8ACgkQFA3kzBSg KbYq7Q/7Br16/++9ebjOhm70GQ8PM9ZFe3yeQh+WXJPb+pwCvOvnwRnFg+dn6Kg3 RPpLJF1PDwS+HJsLrKZGqRyLhtuWY2N2WTbN04SoQaxC71+T7Nv/R63U0m9FpaKM U0PmwmOZ2KL8+1/HmzhlCdD8tnbI8udU3FbPEjdgo4DM7fWy2kAy8Ar1AlLfECJr sIBSpKw5+0pYAJA1MaFMHMbXZpl01qPEsEpMVgbalXifBxZs/+nZJmRSGQny8Euv IxcdCovHhLGfSewgOGB/jQRZo4GzcyZr+2jnyA3wsiDvCip+z/RUzgpPHPjvVJ8i qo65Ep++nU2yTgxS+QCb+iPsEYm0B+cD7xnd+Up/XPi6OZseCKjwLBSbruR7v5JF m38GSUvBQxapp6FBL2L8E5K8X3jLDAeSdwQ6vH86fardMbh1plXXiR9SRhVLJXpw FKo7QWMHEnTTqZ8xmGv2KFcTR8ZCFgDFAMx8nZ2UBCEbT4GSD8AD1spd4wWpJCob rLbXuvKbmniIrYYoHDFfTL7NhP5y1akeka/h97KF7n9NwSV81KsnmXysOoT3EPBn R49VS65VjGdieBHrJI9BBfU0hLtcKDYsI0KUA/cyINqz403XSThLtGA5RJM3fHPJ 3mCvMgj+wiLa8kS8p4VUCAzi6Zj1a5VvQEDgV7QpgUgOUBf5Kis= =GdAJ -----END PGP SIGNATURE----- --hHWLQfXTYDoKhP50--