From patchwork Mon Nov 16 17:41:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 324519 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp3508148ils; Mon, 16 Nov 2020 09:44:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJw9EFmTrBjHV7DKVz1+l07t+eufAxjORPVZ8MQMUDst8irDHJIG+s4M8o3O+C78wKy4kJS5 X-Received: by 2002:a17:902:7594:b029:d5:eda6:fb45 with SMTP id j20-20020a1709027594b02900d5eda6fb45mr13704085pll.5.1605548567181; Mon, 16 Nov 2020 09:42:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605548567; cv=none; d=google.com; s=arc-20160816; b=e0f+szmo3jGAn8YmE40eTBB+3DdebZAS92fbNqzR5EfRXfiwnsuN9563QwL15iTNpS qpfxc38EPFQhMePI83OrXAuuFP51PfBRq6qr4VSusy9ITph/tU/LmMpYsyi9kTAbHoU+ xnxsc6dhUSo/JoLWFh0UHMWmO0N1OTIPGw2WRDB4Tf5Siy9drihjah9sGmTqrVX9B/OF p1DksrYt6satlChEI/ym57Chk8+QtXHB33WzxEhvDgPN0KF2fHEEwZWr4CZSpPf5ihF6 tk3mZRFFH+y9BRZyDB6/NH/zLbjvTjt1DSc+K+dvdSQBSmOTfC2gmqyDJmiRexYGNH8i 0Fcg== 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=Q1OPxxOZAVIs3ujbJNynrLqjo0PmBYU7ZROj1E62JkpuN+V6TRzICD+FDFmDXUhYdG j/Bk3sZvjLNJGvPOG/0N5pim68EYCFJ0VeP7MshjQGI6tcoErIkKKt4GTCDAmoNq5r6V 8BokA73uH2qlThshignq3TwFJaSfTo26KXDbQUAgF7LugCOdnO/aH99uliPQSVwsVzWv IRqKX1E3xkD3y5NVC8+TOaqlkXyvYuJ4HkhVuEAi3pbGakImk3uNehkklqQS882HN10J GCHAlN3f5lyUrQ8YDGboI3/zxUE1YnRJqTFjIRmFyBDd682CjUgZNk16l50w15mG26yi rvbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=TjXthjtt; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 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: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id b10si16216217pgl.297.2020.11.16.09.42.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 09:42:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=TjXthjtt; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 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 B63DC6EA16; Mon, 16 Nov 2020 17:42:40 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by gabe.freedesktop.org (Postfix) with ESMTPS id 65D426EA14 for ; Mon, 16 Nov 2020 17:42:15 +0000 (UTC) Received: by mail-wr1-x444.google.com with SMTP id l1so19648266wrb.9 for ; Mon, 16 Nov 2020 09:42:15 -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=TjXthjttEpmJXsxziQtJEgvptDqsm2IsMdlIZDf2ll+O3GDNYuajE0ftV8lFIdMW20 sb7gHK7eew5HhS2T8VF1svXf4x6DaTH/qnWItZoXjoCQbfK5zbk/wdMR5+HAloUjJrr4 PHqMKcXYueDMUUWbuzAxxJ/L0bfnO1NIqAxF0fhT/ycL4/BRJ+ckcIHt2ZvXJyKHIYS3 UD0PCl6u6AP2alOfvZKLw2BGhLfkN/h0hlD5sTYfOvW2+jmz6mlWKhKUmQgmkEaSa8zH sXKFSFkB4u6zAygOG9BZ3+S3GBvWQpluxgeoZarTXAQ9g+epMBQDJWftsEQT7/DT/yAE Eicw== 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=cFDE6QzkjQgX9w5FJLm7z4i6SJPfZ9rDzITXJocz9OWYRWmy38WSzkW6pncCq8KVAY JYibRW+3atoQEbhEzoHQ6izMH1SpJqIdHo7YpG8vHCgf9RI/ckSGrjooUiuhh7IcDbt8 T254ZtDoh1VtTlZNu5dPIr14/24qhZzu0a9zWUInftbMstWYNBJ3u+HHzyAHaSuNnd2a +WXGdfq96s0zsECumn5dklC0D+8ph1uNj0ahcbqhN0k651dDJYnRmjir5cZRWtqWTTk0 d3cl5IfYhVy0PGNOVdwWzz3zHCjbPE+cvWP/KgSo/iWdxLZ8Ar8bYMi7djW4GF2Cd5dY 7iHw== X-Gm-Message-State: AOAM5336NRZVEP6XVhnXZeUdMHLPt0o8NtfhtbAkcy6kON+5nMzCBr3e LWTpo18LyAxiEf5tIOEQULoaHw== X-Received: by 2002:a5d:4991:: with SMTP id r17mr20913528wrq.70.1605548534067; Mon, 16 Nov 2020 09:42:14 -0800 (PST) Received: from dell.default ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id n10sm24667224wrx.9.2020.11.16.09.42.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 09:42:13 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 38/42] drm/vc4/vc4_hdmi: Remove set but unused variable 'ret' Date: Mon, 16 Nov 2020 17:41:08 +0000 Message-Id: <20201116174112.1833368-39-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201116174112.1833368-1-lee.jones@linaro.org> References: <20201116174112.1833368-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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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 Cc: Maxime Ripard Cc: David Airlie Cc: Daniel Vetter Cc: Philipp Zabel Cc: Rob Clark Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/vc4/vc4_hdmi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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;