Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1457509rdd; Wed, 10 Jan 2024 22:40:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IHumlqYEWtuL6eR6FFZOP9EB5oDBnYNc22X/rOAqqxmaOKNLTnvxuF6eCAfzbPalLJLvM/v X-Received: by 2002:a05:622a:1a1e:b0:429:b9f9:5697 with SMTP id f30-20020a05622a1a1e00b00429b9f95697mr169001qtb.57.1704955235315; Wed, 10 Jan 2024 22:40:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704955235; cv=none; d=google.com; s=arc-20160816; b=F1bTLP88avaJdX+qMF6HONGsJVsMSi3yiVo7D+r/xMPaoXfvUvLE4BPZTVFsEfJZv4 okrDa076W8+fF7OnnnmnRIK9Re89VcqVyWoaroCSh+bNESVZ6eYPZBoZUWvLbVFuQEpr RmoSKVOupCs+Va7Jzuii2PFUcjy4rkx5RCW6wOOA9+AMxuwVFVM5tJm/KRMn9/xtwh2+ syeynXkwZxqFaA8CCMZ26w93221V3RdtLHQi0IrUwFz4E6UwIeSMOqGEKsUI5OrXw1a1 X5beX2akzOM2t97gorLrf4UNSIG/qcj057IJRJ28bxqTS297TEN8gfgd6Ud0pFJxsa4S n/Mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:message-id:date :subject:cc:to:from:dkim-signature; bh=bukJ7OHTol8WS/g72VADTf1WGd5LwIRine63hdltWCU=; fh=T+Jc2GAcVtc4A4JIpHW3Nmw60cBz4uGE2Jnk6ju4u0Y=; b=XjFsld2JxFpDeCBFNXDrzq3Mm52/BIpDYQn42qAIbjp28sNh1bFkYi0tEUyP2WRoGg 2TSyKKFiNCEzW+AHrD+axjH7wBAkkPS3mnX5mvRmd54+VdsrKMqBu4B+HTfoW5ZmKnWk IOgQ3zZBklPyWjBWezkrHe6JBd5WaL7ZlkM9YaiqXUR6K2007IFdwAgq5RdVFKKYNEVa b5d4NILKzYGGPwWoXfYnA8qqIJsBrbZsZ4+bCz+/LvR7BtJGgYAbJKjuHMpf+hLxEVkO ZWATMsb5MaAk8cNG2MA2Hmd/BG29fJCkCctMGuIZUaHDTqJfWiO9FAH7Bud81Y5t8QTF PJjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@126.com header.s=s110527 header.b=DFrWyuxl; spf=pass (google.com: domain of linux-kernel+bounces-23103-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23103-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=126.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id r10-20020a05622a034a00b0042832637e20si385062qtw.240.2024.01.10.22.40.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 22:40:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23103-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@126.com header.s=s110527 header.b=DFrWyuxl; spf=pass (google.com: domain of linux-kernel+bounces-23103-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23103-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=126.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 142131C2359E for ; Thu, 11 Jan 2024 06:40:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F09CB6139; Thu, 11 Jan 2024 06:40:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=126.com header.i=@126.com header.b="DFrWyuxl" Received: from m16.mail.126.com (m16.mail.126.com [220.197.31.8]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 80FA5610C for ; Thu, 11 Jan 2024 06:40:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=126.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=126.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=From:Subject:Date:Message-Id; bh=bukJ7OHTol8WS/g72V ADTf1WGd5LwIRine63hdltWCU=; b=DFrWyuxld5F/tGn1JWAdmsmUPvIilKJ3Lo BbbaOfcBi5J0jDeayZ/d2utSDU3/xfSVK8XCWs+RmH/ZKSnRoeNVuCzbF/eUbQ8i H6LF79yLip7EIfEZ5dMwi15Lup56yBWq7mDatdyRGAJE8MfEsN9d05EIz613CXib ifDNpvFpo= Received: from localhost.localdomain (unknown [182.148.14.173]) by gzga-smtp-mta-g0-2 (Coremail) with SMTP id _____wDnz8cajZ9l8M6hAA--.27451S2; Thu, 11 Jan 2024 14:39:23 +0800 (CST) From: chenxuebing To: daniel@ffwll.ch, airlied@gmail.com, mripard@kernel.org, maarten.lankhorst@linux.intel.com, tzimmermann@suse.de Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, chenxuebing Subject: [PATCH] drm/edid: Clean up errors in drm_edid.h Date: Thu, 11 Jan 2024 06:39:21 +0000 Message-Id: <20240111063921.8701-1-chenxb_99091@126.com> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID:_____wDnz8cajZ9l8M6hAA--.27451S2 X-Coremail-Antispam: 1Uf129KBjvdXoWrtryUWFWDAw1rtrWkKFW3KFg_yoW3XFg_CF y8Z3srXrWI9FWIkrnrAw43ZrWIyF1ruF48Xw18tayFyry7X3W5Zryjvry3X348XF17Za4D A3WkGr4rJrnFkjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUUZNVJUUUUU== X-CM-SenderInfo: hfkh05lebzmiizr6ij2wof0z/1tbiWR1ixWVLYUIH4QAAsI Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Fix the following errors reported by checkpatch: ERROR: do not use assignment in if condition Signed-off-by: chenxuebing --- drivers/gpu/drm/drm_edid.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index 69c68804023f..9bcaf76f10fc 100644 --- a/drivers/gpu/drm/drm_edid.c +++ b/drivers/gpu/drm/drm_edid.c @@ -3611,7 +3611,8 @@ static bool mode_in_range(const struct drm_display_mode *mode, if (!mode_in_vsync_range(mode, edid, t)) return false; - if ((max_clock = range_pixel_clock(edid, t))) + max_clock = range_pixel_clock(edid, t); + if (max_clock) if (mode->clock > max_clock) return false; -- 2.17.1