Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1656864ybz; Sun, 26 Apr 2020 01:18:54 -0700 (PDT) X-Google-Smtp-Source: APiQypIw4bOSG+mKCbmPU243Zrb3aJI2GgH0l054VBk25j/+rJ3pkMCzOOVubvmWHFpwO3QUWEMW X-Received: by 2002:a17:906:7809:: with SMTP id u9mr8950080ejm.233.1587889133775; Sun, 26 Apr 2020 01:18:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587889133; cv=none; d=google.com; s=arc-20160816; b=PY58L9zdR8al3moadtmkVPm1ppuos0TZy3H4Pf4akGEUVMATqeG0HVuT1WX+UqbFAU p1ao3NlQhllPWSJQ2zguRaDCD0jdDlxZs8j31ei1cl17fG8r9GD7/09N2Usqke8RDC+/ i12JCxDzDIZ+Z4eUYDCVeDaNz9av3uf+mkQLN0PDvwsx+WXCzNMIKmp1KdTPcKfkca1+ n8cMqTcZmQ9hW/YyFMUZQ5ad03/+/5wvdS3kpDx/czVuwCZDDnkA2AmzTt7g1RM+Sea7 +y/GyMCi4yNT5y9q8i5M+/3rnTlTgYwmNMnj2R5kRg0DndFwDVDPegkaeg+Wpu3w+RRu 0gSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=tKUv9CJQIdwMQRe5gGcDOYHz7NgMpuP4jq0Hw5CqGYA=; b=ZLMvnpbUtKS8hRgmrE3Ca0rSu/uYmZJ5NfrjUo0x+lnkWTNtNPpxPNwPV9WC1neMup 0UUPX9aWKYCHFSq8mZyfYpfvmuvbyyVZJYzJ3j1ws0ah12pSPLPuL75ELVDH8v+5KNU4 xw4HRBuwNSk1oU2MsvN4lnZ7NJt0yVQGXu1iy0VqFxRQsq3NNIoC88DZxDwXMf5Sshhn l9Ts82yivE//MzYkMZa2yQFcW6bwAG2Zl3LfXWfHHo2X5vXhFTn2qfT2fMWfROsdU8rh POxp4T6CG6qbO2IXxPdj+WKOeip3crennnuIBVpesaKZnXyP3bA3Hbp5v26nL+duMqxb gbbw== 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 y18si5851703edr.442.2020.04.26.01.18.30; Sun, 26 Apr 2020 01:18:53 -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 S1726182AbgDZIQy (ORCPT + 99 others); Sun, 26 Apr 2020 04:16:54 -0400 Received: from sauhun.de ([88.99.104.3]:43276 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726112AbgDZIQy (ORCPT ); Sun, 26 Apr 2020 04:16:54 -0400 Received: from localhost (p54B33954.dip0.t-ipconnect.de [84.179.57.84]) by pokefinder.org (Postfix) with ESMTPSA id 84CD02C01E8; Sun, 26 Apr 2020 10:16:52 +0200 (CEST) Date: Sun, 26 Apr 2020 10:16:52 +0200 From: Wolfram Sang To: Jason Yan Cc: agross@kernel.org, bjorn.andersson@linaro.org, linux-arm-msm@vger.kernel.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] i2c: busses: remove unneeded conversion to bool Message-ID: <20200426081652.GH1262@kunai> References: <20200420042816.18989-1-yanaijie@huawei.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="LZFKeWUZP29EKQNE" Content-Disposition: inline In-Reply-To: <20200420042816.18989-1-yanaijie@huawei.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --LZFKeWUZP29EKQNE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 20, 2020 at 12:28:16PM +0800, Jason Yan wrote: > The '>' expression itself is bool, no need to convert it to bool again. > This fixes the following coccicheck warning: >=20 > drivers/i2c/busses/i2c-qup.c:960:48-53: WARNING: conversion to bool not n= eeded here > drivers/i2c/busses/i2c-qup.c:962:47-52: WARNING: conversion to bool not n= eeded here > drivers/i2c/busses/i2c-qup.c:1531:29-34: WARNING: conversion to bool not = needed here > drivers/i2c/busses/i2c-qup.c:1533:29-34: WARNING: conversion to bool not = needed here >=20 > Signed-off-by: Jason Yan Applied to for-next, thanks! But please fix $subject to have the driver name "qup" next time. --LZFKeWUZP29EKQNE Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAl6lQ3AACgkQFA3kzBSg KbbPmQ//REatWshvQZ2+D9K9K+XGNUsZXGd1r3Vhl+QLR5zlQK1pcxW5p72VHXPj /f7wEZqhCawEKcY6VUbBFquHyZipMoUS7DUKsZa2r0fBLjAyY5rxGc/q/tWs4iHB PlBvoo0XBPLAwGr54mpiFju5PHuU6kQfhA/hPp9++anIq7WJwqxT7lJf9GM7w7Tz /FHZkBBFONE4yN0tD0h70JiJosrvGciJ62ymkCdqOGOO2Zt7SDmT4T0EZjPijIsk 7IX0wevyCgqZkmxdLlFlPawh+0gbyp8larSYelNQBVw58o5hGK7JeSgIa0qyZIBq lZ+O5eO+0pMHONdNcjIbznJXhTMXcn28u2fegpMT3ku/YS0SenJ/QoqIK80J16/a 3avxEVxSlOYcIXf5+OH+HtL7xfZCLwtalVu2rWwcpIikJGyD2axNz0B/c9FozQHo Ox80wyCkRzDVvL99fo9vBJe8/MLNezlZzlpINkmPIkjNv5ZR3cYzSs0W4ckKXTjA ABI4lQhQstVucG070SdxF6zJInWi+su2hLBqBT5DQ7ECt1BmoWFP7YWEBOaY9z31 KkG6BK+DaScpka0liHt1Gy85p/lXBsKY/o5F9n8/1NsUniZ9blHqju6mNfTzLEDI oPHxnBR9jN/+vEq5GfgHQKnCQ0hd0jLGmpzvugbLNj0KOjf9g+U= =ouID -----END PGP SIGNATURE----- --LZFKeWUZP29EKQNE--