Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1535902rdd; Thu, 11 Jan 2024 02:02:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IEjAIZCIiWJ+EhjSuH0brAfs/NZBiZbFxNrgJFk71ZVgbQsAUyfVVpMTJp8ZosIRTT5HLJX X-Received: by 2002:a05:6a20:3954:b0:199:bbc9:3df1 with SMTP id r20-20020a056a20395400b00199bbc93df1mr721938pzg.3.1704967337947; Thu, 11 Jan 2024 02:02:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704967337; cv=none; d=google.com; s=arc-20160816; b=QxR3nNZZueqFv6yU+LTDqdmLRV0enyTQy0I5mXkoOtQtJHSrSmyQQYNRdsEx2hfWuG qIYm5a2+nK1+MVd+E/hXaLiIMcQZpLQFiizxBG+4vmNsqk23vCLfvZ3gxTPT4BjY6Hkw 6gcktMjIWiF/jYJ0qDW9R8uhdy5nh8LfN6sW7OjBaQgihN59Eaf2RGhfltW1nZmiW8aV bAfuZwMkItD0nRgyQiCWftHPlBxJSRJyrHuSjt5d6Nwx+zif18Hfzj8bYGRyXkJ7e/36 cLhnDIvbBYYAU0yvwS2ARsy0PmDxpWucDHKSMAM2DuBp8BN5ALj3s86T2tTdGu4rSqXF NZPw== 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=q9pErWmHQvcnvQXWmT1wuhrIs5x3q6/2qGGsE435uvc=; fh=LeO7JlWDpPZX+7ZpmSAuiKBFuDRUMOirv4hrgwAoV0U=; b=QbA94S1wl3GYSfNV2k4778eKzGuHPDdctB4P5nrajTIgjaVpbl3V6dN4nFLY1aXVJE p1bUOWbAIy+ITrbfvGnpEap5MOz4rcCEom6MrTo8ma7ALPW+wYnSfvWEhXp8ICHAGEo1 6J6Z4jtCpm/GKREJ8FUYERB89G86pZkqbaPTqCcTDO3fR4nsRXd3ZSBaJg3n7cb5RtBo G/BZ3GFyNZbXNtgIKWXp7zHD/6lwXpkhQ1paigLDlUBi8GQlnD1IJB9JNBTOhM/aYwdb glIw1qzZVkIjXF93vVmFNsWE0ZP4PSAg9zcF3wNJsOH/2dHdoqqwlCbAP6hm3xdbdbSZ hGNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Br1yYQqp; spf=pass (google.com: domain of linux-kernel+bounces-23353-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23353-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id kv11-20020a17090328cb00b001d3b51b8897si728163plb.337.2024.01.11.02.02.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 02:02:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23353-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Br1yYQqp; spf=pass (google.com: domain of linux-kernel+bounces-23353-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23353-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 76CAB281FCB for ; Thu, 11 Jan 2024 10:02:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D1DD512E47; Thu, 11 Jan 2024 10:02:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Br1yYQqp" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) (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 8C3CB12B75 for ; Thu, 11 Jan 2024 10:02:09 +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=1704967330; x=1736503330; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version; bh=HnlymRMYb6iBEZkAa/8e5vTHfW9TBEzgwzS94R+//1Y=; b=Br1yYQqpnBUhbEc7b24KLwjln+tuTRxUI05ngKjx7VQnqsUcYvXHu71Y moQudrefWas8prjjEFZM6M9Jeu1JCsr5rUqcvb89e1CXpoPO8sXcR33lo uVFoMDDOpLu4XJDPcqzFhCrQOHeAcr4NHHENIPqM26BqiiSLotN0ERzSk iEC1cdarQK4h+8P7rXrsZIP7J3Ai7ixOTjyzy0UxOvAzDUIbUOW8yeQB3 0/S0pUCCIH1umg92qYXxFFHdSUF1vUpRJtB/HvJWeVfND5REYeURe+i1g 2bhyTQJIbIxZc5S/tTsVSBG76DEnz9BcpnefNFmtvfLo6PQJ5KJPlIL8Y A==; X-IronPort-AV: E=McAfee;i="6600,9927,10949"; a="12157033" X-IronPort-AV: E=Sophos;i="6.04,185,1695711600"; d="scan'208";a="12157033" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jan 2024 02:02:09 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10949"; a="1029485678" X-IronPort-AV: E=Sophos;i="6.04,185,1695711600"; d="scan'208";a="1029485678" Received: from gaertgee-mobl.ger.corp.intel.com (HELO localhost) ([10.252.54.206]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jan 2024 02:02:05 -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: <20240111063921.8701-1-chenxb_99091@126.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <20240111063921.8701-1-chenxb_99091@126.com> Date: Thu, 11 Jan 2024 12:02:03 +0200 Message-ID: <8734v4ur1g.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, 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 > --- > 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