From patchwork Mon Nov 16 17:40:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 324483 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp3506141ils; Mon, 16 Nov 2020 09:41:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJz9bEAL2UpZnYykse4Ofi58VBa7kh/tEVre8qbP43hM+UbP8dQF5v5ZjFQ4sofliZH2CWOU X-Received: by 2002:a17:90a:c254:: with SMTP id d20mr27372pjx.112.1605548495071; Mon, 16 Nov 2020 09:41:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605548495; cv=none; d=google.com; s=arc-20160816; b=tEVHOn/VklsZkPLtdewuKK99X+r21JUjbMCB40IV0W3WxyhXns/NGLxz4ZmkNhEoBo hmY7e9ycuv4LO48AYCtnpiVJgtkVaNkCWp8BfLSdvec4FMEfE91XWc2N2Z9oDxU8EURN IVC6o765mYv98VwMxuGpvxUkLmU54Rmx9nWvXo33lr0bgnCZ6Jf4nT46a9+VN6zEFJrd s4p1t5RfPau4ZIqq624bPn11GoZeA0606Ca+W4ntIZhdSc6PtCVRZl1XClXjZp2spqjA 2ohd5r++1bGFEa4nlSwPvISXYLOG9LDWi7lQCHwoRPoD6NujGET7wWjQAyHkQdjYMBAw /T6g== 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=FlbUhbFZsss+rhlB7MGZp19sIGPufWF4jTd8hAGdWG1WI+RndL2elhgDzt8aqfLiGl 620xSXCpbHIPqBDbMoyUDxKTOUU6f1Wp91te2/a7CRFnSIjaDdVWHwy/LmOTR38JNaiD +bO82mB08dSVP8Lhy5Q+BcqxP4hzQW8i9M7v1vEjpTpuDilQM/kAzMPLtY1DFwtxoGU2 VQV5Wyb15zpvrIzH44PpHD3JnLkKE0cygT7PXlLqVYIl3hlsoAd+syD30AIxO4i2nsZK fTGh3R/skraSLOfqnXBmn69OkJrOdEdxZB5bf8x/cH42DgfAAV1r+vKcNKY8jT+rmoUX J16w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=XGCk6s8g; 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 u16si15992087pga.460.2020.11.16.09.41.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 09:41:35 -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=XGCk6s8g; 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 A7C966E8E7; Mon, 16 Nov 2020 17:41:31 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by gabe.freedesktop.org (Postfix) with ESMTPS id 75C9C89FCE for ; Mon, 16 Nov 2020 17:41:24 +0000 (UTC) Received: by mail-wm1-x343.google.com with SMTP id p19so378382wmg.0 for ; Mon, 16 Nov 2020 09:41:24 -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=XGCk6s8gC8Z7wwqz/yakD2Actx1/SDxlJWpn6VZXYaCcZgwFWPIiwikiWrSfoDH1CY eoyz/KluCphA/lJ1/dcnuK8uF1wLI4GwD2IuYSvn/QpePKLy80V5b4ResvbhO8AJSa2h AuO1DEYoX4OcOKEvamcX7MR2cFDcfgRQZD03tFja5kLg+EDyqI2PN0WelbUbGJdFWcR9 qsLBgHOvcP5PeWWLWZVF/7/MPWWr0mXikaw7doM1MvCg7vjAv9VGWYC/Q/iK7T7Cp4Kz O6mdYmXV4Nt/nd9+89fMr8shFLkuMiT9zKMRumtWDe5SfMO3vzuOjAqn2sriZEQUbxGN gsWw== 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=MB8UsuhnuFV9KY7Eh8nOAJcM+jwwLxLDJEPbF2KSjBieLPCvNuTpUHBVMZsHHjynB3 kEOH6VU/EvozG6tpFN2W7OaGmSRQiLS8yOhqlJHJAM0LWPJCifLKDxRkyh/UzOAktir3 D/ZQstaa/pip52C0nuoJVoDYB3aVNtjjyxKG/CPyqoNna4O2uQhGcDinOHhDlpiSHB8O ctUzV2QuPwvI5mKHVmlOPvMSotoz7lsdmPknnJpFPfJlXWXqZuDmD4495IpWxz0WdT0Q e9VxeamampO3rLJLxIsbRH7HeCnZBtxCVayT4K1zk/JK6q8a8QyECwlIKTCgIk2GXBWR Mwmg== X-Gm-Message-State: AOAM532zH17lT4cyCGnu5Wj7TwK6WqJY0Oxs4NbKh7S5mhtKmdevEn22 DM98FhLrOx/b0G+l2QdLDAfGRA== X-Received: by 2002:a1c:b387:: with SMTP id c129mr37255wmf.58.1605548483095; Mon, 16 Nov 2020 09:41:23 -0800 (PST) Received: from dell.default ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id n10sm24667224wrx.9.2020.11.16.09.41.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 09:41:22 -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:40:33 +0000 Message-Id: <20201116174112.1833368-4-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, 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);