Message ID | 20201112190039.2785914-12-lee.jones@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp589020ils; Thu, 12 Nov 2020 11:01:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJxBQg39LooEaRhghllLSJv3C1Su/tQ0haocacdfc4RAmFrqL2R3oB20pUKzRAhamvyNPmQV X-Received: by 2002:a63:1301:: with SMTP id i1mr759674pgl.311.1605207676734; Thu, 12 Nov 2020 11:01:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605207676; cv=none; d=google.com; s=arc-20160816; b=Lo9l1Z+uGUAxNlJZMiecXJgSe+LwhTg3ifqU8dl2V494hAdGrU32ncVaX9ME3tQhmo jS26A4mHYAIoAYI93ATrJySyX5WsAkvjUVK1KNxIuf8TQZNdMOqVaewAiGYhg8lal/ig W/g78yo2UADhyTS2aekcCT6U8JYIC5x+/Y4cG9ERnsZzB1HwcfPQu+t/ivQ4wsCnoeg8 bg2exLztPmTahYtXpUixkNLnb1mfY3oKldEqIhZeal+GTjZ7O/b6cptse/as+oFknEDb f9vM3Dy3sKuQTa7dSj8mg1fkck8FhFqEl0zyYQ5Z8hmZmvRzImN/cNwraWgc0m7xvBgV 7Kog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=Ia6OsUY6iwfj3wkbv+XDDTa5/B/qb3RHPbrU+M/BXyw=; b=zE6Dyx2A7CAraKBVlaMw3KEPUA56lG6leYYc91WqoIk5EsKXQHcB1zNJiqjiEJplrZ jecufB09v8LPDKe0nYkEtbaN0iyo74+cQo1S4eK+9SMnl2XPxT2mJl0OspRhrS3Wo+E1 JS6lN9PfBfkZv5GoqBhvlMGO5PwEP44AB8qbE+Ly8PNCG0APBFom9FoV+jqiZJcuXxYu UW60HH5HDLzlojFUrYs32QaLuZ8b6g3fTKu8fHU6w3gI7lXWj2f3Lg+EZJN7kPYZ4Hkt ChA7sv4Fr9L6D7qQzRuFoE3iq0ioSlPEDet4gmJATLVnZqqXhRQNjFVGXe32QjSCZmfk NWOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=LW3L37Tw; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <dri-devel-bounces@lists.freedesktop.org> Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id m2si5049668pgu.27.2020.11.12.11.01.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Nov 2020 11:01:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=LW3L37Tw; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8831B6E3AA; Thu, 12 Nov 2020 19:01:15 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8D7866E32F for <dri-devel@lists.freedesktop.org>; Thu, 12 Nov 2020 19:01:08 +0000 (UTC) Received: by mail-wr1-x442.google.com with SMTP id p1so7126354wrf.12 for <dri-devel@lists.freedesktop.org>; Thu, 12 Nov 2020 11:01:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Kn9g1kMG5JlU7ctdIXE2LbkwCeCLbWZDScIEWNzvtKI=; b=LW3L37TwALnk4Q2xAPgEMzfzdr9zoa+spFmcHccQPbuhCyr3wHoD9YOlFlgX+pwBlq zqmKPE0BGKQsYMGsz0hzah+uMSULv+3zZt050EZH+He85XYyfbQbsHB4IHGeHUINSDHO 7A+WAD3QCV6qvf0ix7jhR0+05n8cQYNx8iQx/aTB1liHFtvjGBJxfS9/GwD4HphiSkMY pLEEMq4AAv0ASpigUk1pEOCF28p/s1xmpNClKI2Vrpu0YrQuMN8akO1yxONVW6yL9cja XhIaSQvd0CYJk3NXYpq1viX+Yy2ayRVZ7lNdPpSeiQr5YO9EFVKrHYN+A5s1NfQuE4nx wzSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Kn9g1kMG5JlU7ctdIXE2LbkwCeCLbWZDScIEWNzvtKI=; b=AQnlyKZWrUwXcOspz9ldtRUJQ+1VAxCea9RC5XTLaQ2zL881vD9GvMAxt8jRThFcQ2 uiAaDip+Xhe8GYOJlsguFJSsz9xEJ8gGK4Yj/33o2jpwckdWVE321SIED2R9VF8NM4kF 0YYJCKEIaDaIkay8pMGdLyvZarvKQZ9ZNQY8JFK6gYWE1zRktWXh3hdFA31zP1ZE0hpJ zWBda86w1TcMF90c9Y9ut15MN+le5Zd7YRO0YumF+MpLEokUN+0X9FYwwze83ry6vJBg 1TEqKO5AP09FzGNVKooszrfjrkrvy2qXMd6BlAihKX6mpycmpyOzZhKg34Ymv6q+r1bV HuPA== X-Gm-Message-State: AOAM531b3LuJ3ASZZGbb2i9sT4GZAlf2rYR45NHQvmeDtLPeY/qCgmy7 VTHPrCIswqZSnz84b/gmAAOwwg== X-Received: by 2002:a5d:4690:: with SMTP id u16mr1106632wrq.263.1605207667284; Thu, 12 Nov 2020 11:01:07 -0800 (PST) Received: from dell.default ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id p4sm8105214wrm.51.2020.11.12.11.01.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Nov 2020 11:01:06 -0800 (PST) From: Lee Jones <lee.jones@linaro.org> To: lee.jones@linaro.org Subject: [PATCH 11/30] drm/vc4/vc4_hdmi: Remove set but unused variable 'ret' Date: Thu, 12 Nov 2020 19:00:20 +0000 Message-Id: <20201112190039.2785914-12-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201112190039.2785914-1-lee.jones@linaro.org> References: <20201112190039.2785914-1-lee.jones@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development <dri-devel.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> Cc: David Airlie <airlied@linux.ie>, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> |
Series |
Rid W=1 warnings from GPU
|
expand
|
diff --git a/drivers/gpu/drm/vc4/vc4_hdmi.c b/drivers/gpu/drm/vc4/vc4_hdmi.c index 95779d50cca0b..b80eb9d3d9d5a 100644 --- a/drivers/gpu/drm/vc4/vc4_hdmi.c +++ b/drivers/gpu/drm/vc4/vc4_hdmi.c @@ -331,9 +331,8 @@ static void vc4_hdmi_set_audio_infoframe(struct drm_encoder *encoder) { struct vc4_hdmi *vc4_hdmi = encoder_to_vc4_hdmi(encoder); union hdmi_infoframe frame; - int ret; - ret = hdmi_audio_infoframe_init(&frame.audio); + hdmi_audio_infoframe_init(&frame.audio); frame.audio.coding_type = HDMI_AUDIO_CODING_TYPE_STREAM; frame.audio.sample_frequency = HDMI_AUDIO_SAMPLE_FREQUENCY_STREAM;
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/vc4/vc4_hdmi.c: In function ‘vc4_hdmi_set_audio_infoframe’: drivers/gpu/drm/vc4/vc4_hdmi.c:334:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] Cc: Eric Anholt <eric@anholt.net> Cc: Maxime Ripard <mripard@kernel.org> Cc: David Airlie <airlied@linux.ie> Cc: Daniel Vetter <daniel@ffwll.ch> Cc: Philipp Zabel <p.zabel@pengutronix.de> Cc: Rob Clark <robdclark@gmail.com> Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones <lee.jones@linaro.org> --- drivers/gpu/drm/vc4/vc4_hdmi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)