Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1695667rdd; Thu, 11 Jan 2024 06:50:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IFwnAkCnyXFSO9d+/Ywa2QJQnHA/pfr2l5poQ3NlKtKz321E+kqtBsEM7hxqRLCOlPznWZV X-Received: by 2002:a05:6a20:728f:b0:19a:19aa:cd03 with SMTP id o15-20020a056a20728f00b0019a19aacd03mr1395149pzk.0.1704984657438; Thu, 11 Jan 2024 06:50:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704984657; cv=none; d=google.com; s=arc-20160816; b=aiPn57DnITa4IxWMjB5i4yI1f3D5TxsxRMTlMPazAGmvHP11cERvlbOttefq9YCe7e K9nMZkqICukS2I+d10pnioB2F6YGMeczwT6tJaZC4yq02ZXDrw++ksowwdIZ8Lshc5xJ s7xJuPP/x1al/RfGWuSB2pO8YGSRgLEMp/Ydk89HMIAWAeOh0jxz26Ol2uVC1St9bxRE 06PytMZu288yRrCXX2SVnFi+bBU5gga14zzITWYY7LNFyM65bxJXSXRvzqihbRyP9u+v QOE2waOOeEzisqJTfxNx3UxcWQp1rUoUcs0J69fl38eAD5l7G/j0WFzawetlQqGwprot attg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:organization:in-reply-to:subject:cc:to :from:dkim-signature; bh=7dHhwRFBbWwPKkfTLqzYp4yMY17VbbjEr0OOpQaskjo=; fh=LeO7JlWDpPZX+7ZpmSAuiKBFuDRUMOirv4hrgwAoV0U=; b=XUO3hIP15LTGOr3v5Z+Qeg7pmmaeSlzhzRqEafEvksnWFeubEy3eLKvqcDLE5JrIti 49evfXDewPyzks9yydFR89cgJRuWJwBcaT+pY0B+sfUuuU7yAo25UM2KiN9SMAB+CUx0 yAKm2qd5YRiQhgVl5J6nB+C3Okb+VdCTA2Q5OuVT5qcMmBM+AbgFljJHJGB6mxnfiK2J aL4cZwxgNowo1KEaAzfBD/dYFCDloVEYFSbvayuj0k2bThopdk1YgjEhExT+w9J02cpn kaEjsdeaPuCWC6CMGwR54zg1JmEzDl/TIFDqp9NyWY/xSvwmQS9CTqGyTteCu7rrq4Pf fm5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=kFw4PfmZ; spf=pass (google.com: domain of linux-kernel+bounces-23730-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23730-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id lp9-20020a056a003d4900b006d983f1fce5si1195182pfb.276.2024.01.11.06.50.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 06:50:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23730-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=kFw4PfmZ; spf=pass (google.com: domain of linux-kernel+bounces-23730-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23730-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 854F9B24997 for ; Thu, 11 Jan 2024 14:50:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 00994495CA; Thu, 11 Jan 2024 14:50:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="kFw4PfmZ" Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 85C8715E96 for ; Thu, 11 Jan 2024 14:50:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1704984614; x=1736520614; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version; bh=9XuexC1XqjTh3u+4RiixelWH3d7w3t5hO26lXRAs1QM=; b=kFw4PfmZJeP6ckO3BSBG3G3X4Iz1W7JMbSDHlZ6ao8xDRV0cgbQ0ukb9 DM7V2a16O2BWTSzR5gBFhNsJR/U7+52vWxSmxJ0Nrc1lh+voVy0SThE7q TCHec9rwdoKGulrV6TuxWtIhuXOpZkghyOwHcHph7eYfnQhBYCwGbpUQz kR3SfNe89MxkQuncbOuPkQB0vsQ6yth3xyDe1nAu+XZ6txy8TK6QsnIb6 CuKIvQ+RwjFceNEJenTfgkPeKjL+Z7Bx0SFmic/3xTGjS7ewEDg0HoPVJ o1lVMcWPo66oJdt2lIdvdxuvlSzqcazUvS5LZG+eabo7QnRKkc9kPVKer g==; X-IronPort-AV: E=McAfee;i="6600,9927,10950"; a="397740992" X-IronPort-AV: E=Sophos;i="6.04,186,1695711600"; d="scan'208";a="397740992" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jan 2024 06:50:13 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10950"; a="775633954" X-IronPort-AV: E=Sophos;i="6.04,186,1695711600"; d="scan'208";a="775633954" Received: from unknown (HELO localhost) ([10.237.66.162]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jan 2024 06:50:09 -0800 From: Jani Nikula To: chenxuebing , 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: Re: [PATCH] drm/edid: Clean up errors in drm_edid.h In-Reply-To: <8734v4ur1g.fsf@intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <20240111063921.8701-1-chenxb_99091@126.com> <8734v4ur1g.fsf@intel.com> Date: Thu, 11 Jan 2024 16:50:05 +0200 Message-ID: <87r0inudpe.fsf@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Thu, 11 Jan 2024, Jani Nikula wrote: > On Thu, 11 Jan 2024, chenxuebing wrote: >> Fix the following errors reported by checkpatch: >> >> ERROR: do not use assignment in if condition >> >> Signed-off-by: chenxuebing > > Reviewed-by: Jani Nikula And pushed to drm-misc-next, thanks for the patch. BR, Jani. > >> --- >> 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; -- Jani Nikula, Intel