Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7749961rdb; Thu, 4 Jan 2024 06:40:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IG3YsdHjl8idnHcqTcTy+4cSFIwyIY3NfmAuy+PiTehV0da21OhOqsuRLA7mD2t3oF+QZ5A X-Received: by 2002:a17:906:5f83:b0:a28:d850:642a with SMTP id a3-20020a1709065f8300b00a28d850642amr706780eju.40.1704379212669; Thu, 04 Jan 2024 06:40:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704379212; cv=none; d=google.com; s=arc-20160816; b=KRgHmRXu431izdIBgpKfzXS8KHyEreiYqSmC/Et8Ct7eYy+7V8twAK2CgmzFAxxJ25 PpMIxIrT0Phw6Rp8tuAIq7/5zb45uRUkd9n+zuhGcJSeSOs6l4NWJPHAq+K0w5P9wRp8 K3Umi3KOP8pPV+CHUsUy1r8grTyLeVp+0qmoZQDMjrrbU9gIeZ+CzeUoHw/Cv4dd0m6T ZrHJ9gx3Q/kd1hN20lSoJX15fmBhb1wTd018rLLg2u3XtJJ4eqyc6IQOKcbr9kTmf7Ja JImn2Pv+qCVZXPLS1Vxcbxy+SpkliKX9ZxxOLcCAa1ixfG3HkbCyIWvgoGxSzXiEYmAN z/oQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=rp11I5nd6GfMqHBEtnjqNbzO5QjgcQzJ/hrfVIoazlI=; fh=VHhIG2KUdtq/t9XgI3hDRIe5Cm/wdwReNzkkuxY96z8=; b=FJOn27H2mgX6ZBGmoKhgTKFvyyKBhCf/01Tsz9zeUam0xTW/dt1PqyyGtqGphya++f 3czacIzOIZ5jhhsV1uEoiZsPGG+/vyVxrpW3U6Y3CebRau9u3+ZUOJb38S7oqNcO9ggP emTxPOQiCciLeE3y2YTERuLStkG1vnkEWEsE4d+XARteb/RR5AZdfh8UlOeo3RjqqIuv 322tSrfxwVxlftZutLCJkjpSEsUUJWRLXdARi+YnXwaEaafRi6m+nlUXjayO3zeQBRrv NPHbXlXT4lzFhCy85608id0LvmG8YaaXiUflVLhkJanui0HuVQrDFRSzk6Yo8mHhpsJy iVdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=OwgrRQ0r; spf=pass (google.com: domain of linux-kernel+bounces-16796-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16796-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id d2-20020a1709063ce200b00a26f3fdd3ccsi8504507ejh.1047.2024.01.04.06.40.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 06:40:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-16796-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=OwgrRQ0r; spf=pass (google.com: domain of linux-kernel+bounces-16796-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16796-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 6C1031F254A8 for ; Thu, 4 Jan 2024 14:40:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4702523758; Thu, 4 Jan 2024 14:39:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="OwgrRQ0r" X-Original-To: linux-kernel@vger.kernel.org Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (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 F2BB623741 for ; Thu, 4 Jan 2024 14:39:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1704379195; bh=LwJiWNixgLxt6lWwrlS02C+4POupia0P98Da0BOUfU0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OwgrRQ0rIDcc/jUhiQv/PCwYmkZNCxYNoy5da/8UTYUGsfAetij6ESu41hWpT1oDb LmiUYP4ljJJkyONMuLwqiM7bFOYZHW7/MXHqZh6r9jlgh4FQv9/8F376VIVCrxM5gE QE8n9xStFBpK1KS2EOfXqRBR7Eut5dmc37QM5stdlhqHX7hPMN/XrgUbA648f9MP8x DiOZEXiQge4FSZMPm+vfoWNSKRDWvL9JHkjW5ZXqmZqV0sctX9e2uiuSRffCH/gFeu Ipaqr2E/Ezy5HiF3wko5tNF2J6dhQkFwSEbbOR3GgGue6Jnfr8DOibb3r6WrvoxMmz 6GY0PHjmz1Z0Q== Received: from localhost (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cristicc) by madrid.collaboradmins.com (Postfix) with ESMTPSA id B9BB4378201D; Thu, 4 Jan 2024 14:39:54 +0000 (UTC) From: Cristian Ciocaltea To: Sandy Huang , =?UTF-8?q?Heiko=20St=C3=BCbner?= , Andy Yan , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter Cc: dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@collabora.com Subject: [PATCH] drm/rockchip: vop2: Drop unused if_dclk_rate variable Date: Thu, 4 Jan 2024 16:39:50 +0200 Message-ID: <20240104143951.85219-2-cristian.ciocaltea@collabora.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240104143951.85219-1-cristian.ciocaltea@collabora.com> References: <20240104143951.85219-1-cristian.ciocaltea@collabora.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; charset=UTF-8 Content-Transfer-Encoding: 8bit Commit 5a028e8f062f ("drm/rockchip: vop2: Add support for rk3588") introduced a variable which ended up being unused. Remove it. rockchip_drm_vop2.c:1688:23: warning: variable ‘if_dclk_rate’ set but not used [-Wunused-but-set-variable] Signed-off-by: Cristian Ciocaltea --- drivers/gpu/drm/rockchip/rockchip_drm_vop2.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c index 44508c2dd614..923985d4161b 100644 --- a/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c +++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c @@ -1685,7 +1685,6 @@ static unsigned long rk3588_calc_cru_cfg(struct vop2_video_port *vp, int id, unsigned long dclk_core_rate = v_pixclk >> 2; unsigned long dclk_rate = v_pixclk; unsigned long dclk_out_rate; - unsigned long if_dclk_rate; unsigned long if_pixclk_rate; int K = 1; @@ -1700,7 +1699,6 @@ static unsigned long rk3588_calc_cru_cfg(struct vop2_video_port *vp, int id, } if_pixclk_rate = (dclk_core_rate << 1) / K; - if_dclk_rate = dclk_core_rate / K; /* * *if_pixclk_div = dclk_rate / if_pixclk_rate; * *if_dclk_div = dclk_rate / if_dclk_rate; -- 2.43.0