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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BE8AAEB64D9 for ; Mon, 10 Jul 2023 07:22:58 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8A3F910E1C2; Mon, 10 Jul 2023 07:22:50 +0000 (UTC) Received: from mail.208.org (unknown [183.242.55.162]) by gabe.freedesktop.org (Postfix) with ESMTPS id C51E410E0F1 for ; Mon, 10 Jul 2023 06:07:15 +0000 (UTC) Received: from mail.208.org (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTP id 4QztnX65p5zBHXgl for ; Mon, 10 Jul 2023 14:07:12 +0800 (CST) Authentication-Results: mail.208.org (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=208.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=208.org; h= content-type:message-id:user-agent:references:in-reply-to :subject:to:from:date:mime-version; s=dkim; t=1688969232; x= 1691561233; bh=Nj7xOQ9cRaGdSAtlpfwqF+2OgV3LgNsBhofoMjyRbag=; b=B RxmLuSEe6rZ+go4Xm6gEXS0Y1jHRR0Xw75Wjp1qTZbckMWqgjrs+HSlVxQo4heLx RUT4xOv4BsvI0d8o88yydOwu4Ln7rIx4wLhu3skIU5pTtTR55FTZ+2Vk0LYd+gnp YN3WfSV6qoYN/IO1qrLrjS7DuISYcVbfD3yel3Vg1ROdc2+UbpG/kCalpSifU4YI I6UhVDlcaEW2KUbkvOnYH1AqiLj5tJ8ubDUqAo9fYVLa13+d3voFTErzCl+jqfE2 LlpEKoRIV93X0STb0te4Nl3U+JDOufxl/H2gbPbqopKd3xQ611lT8aPjnaN8Z9Ba SnLb+NjlSwLGWii/jgRpw== X-Virus-Scanned: amavisd-new at mail.208.org Received: from mail.208.org ([127.0.0.1]) by mail.208.org (mail.208.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ZAH-O1WxdB5K for ; Mon, 10 Jul 2023 14:07:12 +0800 (CST) Received: from localhost (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTPSA id 4QztnX4gMczBHXgf; Mon, 10 Jul 2023 14:07:12 +0800 (CST) MIME-Version: 1.0 Date: Mon, 10 Jul 2023 14:07:12 +0800 From: sunran001@208suo.com To: airlied@gmail.com, daniel@ffwll.ch Subject: [PATCH] drm/nouveau/i2c: do not use assignment in if condition In-Reply-To: <20230710055219.53210-1-xujianghui@cdjrlc.com> References: <20230710055219.53210-1-xujianghui@cdjrlc.com> User-Agent: Roundcube Webmail Message-ID: <698cc4eb4333c5161540c7737d6e4970@208suo.com> X-Sender: sunran001@208suo.com Content-Type: multipart/alternative; boundary="=_41d132f076c0c97ca6bdbb296c41e0b7" X-Mailman-Approved-At: Mon, 10 Jul 2023 07:22:46 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" --=_41d132f076c0c97ca6bdbb296c41e0b7 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed Assignments in if condition are less readable and error-prone. Fixes also checkpatch warning: ERROR: do not use assignment in if condition Signed-off-by: Ran Sun --- drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv04.c | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv04.c diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv04.c b/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv04.c old mode 100755 new mode 100644 --=_41d132f076c0c97ca6bdbb296c41e0b7 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8
= Assignments in if condition are less readable and error-prone.  Fixes<= br />also checkpatch warning:

ERROR: do not use assignment in if= condition

Signed-off-by: Ran Sun <sunran001@208suo.com>
---
 drivers/gpu= /drm/nouveau/nvkm/subdev/i2c/busnv04.c | 0
 1 file changed, 0 ins= ertions(+), 0 deletions(-)
 mode change 100755 =3D> 100644 dri= vers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv04.c

diff --git a/driv= ers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv04.c b/drivers/gpu/drm/nouveau/nvk= m/subdev/i2c/busnv04.c
old mode 100755
new mode 100644
--=_41d132f076c0c97ca6bdbb296c41e0b7--