From patchwork Mon Nov 16 17:33:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 324432 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp3500833ils; Mon, 16 Nov 2020 09:34:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJwocNTxX/LmWNKYwc3s7DNI8GzdUr29KvA3z95Ez+tiScIUuicJTx8W8Kg3+vb20XQCoa2m X-Received: by 2002:aa7:955d:0:b029:18b:f646:7d21 with SMTP id w29-20020aa7955d0000b029018bf6467d21mr14288052pfq.61.1605548052839; Mon, 16 Nov 2020 09:34:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605548052; cv=none; d=google.com; s=arc-20160816; b=TzQr04frwnlRnlPISrxKvPV7AUSOcjQSA/+UYpJMCKDzEqsU/WN+aLu6sxcJQmnvPF iauGbPgvr10nW9H+qQvV/F/FLGD6YTthhOMZBxahN/P7f5FU8JsAMdN/y0tl3QhVbLLC SzukyvYuCHg2oNzV8I99adO3+eK/Y5cK4w/sR9C1UjqkTdyHi0fZConGOcPA+lBFO6lw mV0UfgMNR791+UPnMR5NO0xXNMmSSIrDYXXjpPC5E5bq8seV1EcIAk3RifiY3uSpWTOb y/DesndREWtlZrwXqQJcsUJZzo8kDQW9P6Z4598UgdSlMV5nKgvae2QFsuyFERcp7wdm 1YUg== 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=bkcAQ4Ovtft1p4no1x8tGraBHrUYNmUoXOqKPDFE7Ew=; b=IWfpR6dW8Wn6ouAYD118KwueZvOEM35q1L2ey1NIUby79KL/F3FUocZd37FLiw1zdG JsHFwIi69cDnCl+NE7dv6SMFcxZEfr5BbPFDoLTERAdwz240Yeq/q9St5F9pTmSvERfX smIe9m4dtPaplm+n5wBsIr8ydh1dEgO3YjX94IeiCkmb86t3FjD00MDhIq5Y4oSE18Mx Yj9dmtoNlYMAgWHtMW1c7ko1FRXtyq0clGW/siLEx2b8a43hpeTfBy9vKbtzeYlmEl/x qs2pmMwbpLm01/QsgYrFpxNJgCwVeBoHmZXufqR+566mnZ6ZHWqKtldhIr8wUxndwMAU UcNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=cqC85SAb; 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: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id x21si2389691pll.175.2020.11.16.09.34.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 09:34:12 -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=cqC85SAb; 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 801406E039; Mon, 16 Nov 2020 17:34:08 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by gabe.freedesktop.org (Postfix) with ESMTPS id 49ED26E03A for ; Mon, 16 Nov 2020 17:34:07 +0000 (UTC) Received: by mail-wr1-x441.google.com with SMTP id o15so19621072wru.6 for ; Mon, 16 Nov 2020 09:34:07 -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=451+tFthAljOAh2f/Wv8bktxEJYp2PVcrpZPPSF00gU=; b=cqC85SAbvKb4vxP7CxB9dr4lJWpnhLV/bViOX/iYNsOK62UjscaixwfZ+7HpQ6X+Aj bQ39omF4/4UFe9u8ru1Uka99/ZD+ipHFxL/krKYjAHVCU3ZxW/IqcAiK2X7GDyH++Dmv pK5DSQ7ibKOEx9THmb89wrkmPYiWTLCpogCDuvJQcuawwN8RV7vAbaoJH9hNL+XCx667 On8f9BmcWcdjvdLMOF2P8QfE2Se3Lm6wENVAqdz3wvEHpUaCSqmd7x4b9oLSkRyYkTXe E+8QN62Au5MDWSB3V8KIkvypkCRpK2woa2aY9HG6Je98SQtZAkoWZaKKo2uW0KetB71f 3/og== 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=451+tFthAljOAh2f/Wv8bktxEJYp2PVcrpZPPSF00gU=; b=Sywt1JPWaM+K3b7+W+1gY2CG4TUH06D3f4XXDz3E/IApO2W3lm7EFOOm7DQ0GyjGyK 6S9ZqFw/kdxvFVJo5fuz/wOcu2AGhLGZtk93nCtfmzKNG+YyMdkG98yAJnUuJVIx+3zJ UHN+lD703Q4EXnYepKF2DIwCC/lKH8SHdeN3X1EewRVB6crctCxbIb5yrOPScgEyFMBR GTGECh7fp08XsEUElgb3/Ae0hgdqvD4GL0kwRPYaqMx2w/Sjj2BER2SLhDOMKXqUckLB d84u6zfKml4NaDyJ5om5l8sWMbGAwO+17qTM8O9BY9zvlUFiMLY3PLNmqPwusDL+Mkmq IjRg== X-Gm-Message-State: AOAM532MTOBMXUnvzFSM3bbsZzWWIIL9XgCq+wuZwwiE44ZPhHK6J7Vo 01+E+7YX3vqYoFHPlMMuo10wyg== X-Received: by 2002:a5d:5701:: with SMTP id a1mr20225355wrv.120.1605548046015; Mon, 16 Nov 2020 09:34:06 -0800 (PST) Received: from dell.default ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id k22sm20178562wmi.34.2020.11.16.09.34.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 09:34:05 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 03/42] drm/drm_dp_mst_topology: Remove set but never used variable 'len' Date: Mon, 16 Nov 2020 17:33:17 +0000 Message-Id: <20201116173356.1828478-4-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201116173356.1828478-1-lee.jones@linaro.org> References: <20201116173356.1828478-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, Thomas Zimmermann Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/drm_dp_mst_topology.c: In function ‘drm_dp_send_query_stream_enc_status’: drivers/gpu/drm/drm_dp_mst_topology.c:3263:6: warning: variable ‘len’ set but not used [-Wunused-but-set-variable] Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Thomas Zimmermann Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/drm_dp_mst_topology.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_dp_mst_topology.c b/drivers/gpu/drm/drm_dp_mst_topology.c index e875425336406..0401b2f475002 100644 --- a/drivers/gpu/drm/drm_dp_mst_topology.c +++ b/drivers/gpu/drm/drm_dp_mst_topology.c @@ -3260,7 +3260,7 @@ int drm_dp_send_query_stream_enc_status(struct drm_dp_mst_topology_mgr *mgr, { struct drm_dp_sideband_msg_tx *txmsg; u8 nonce[7]; - int len, ret; + int ret; txmsg = kzalloc(sizeof(*txmsg), GFP_KERNEL); if (!txmsg) @@ -3281,7 +3281,7 @@ int drm_dp_send_query_stream_enc_status(struct drm_dp_mst_topology_mgr *mgr, */ txmsg->dst = mgr->mst_primary; - len = build_query_stream_enc_status(txmsg, port->vcpi.vcpi, nonce); + build_query_stream_enc_status(txmsg, port->vcpi.vcpi, nonce); drm_dp_queue_down_tx(mgr, txmsg);