From patchwork Fri Nov 13 13:49:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 324310 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp1213240ils; Fri, 13 Nov 2020 05:50:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJwai1449/5cXWzxFpLQBWk7x25jJP2Jxm7NSMYZo4AEAwOaZtkzwI7GlJ6Jt9ZqnwZYK7Rw X-Received: by 2002:a17:902:6b08:b029:d6:c471:8b5b with SMTP id o8-20020a1709026b08b02900d6c4718b5bmr2330026plk.78.1605275449109; Fri, 13 Nov 2020 05:50:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605275449; cv=none; d=google.com; s=arc-20160816; b=0gdgw63KIMKg7k59ynyKZHWQZQ5/dEk7sPnxXb+yez57RMBY0OWKdvwQf80S4QHCOt 8R+kQYXPP5gy55grx60jYlhhCjsZ/WhbGImhKSvoiODtU/mdtDkQWAlhZdFu4kQrgsWq lGqkXMXhwj9a4DdNJ72Sy92NdZ78AV1VFGF7ryXFPxcasPvxF9P+vOQ2iwUzBCYajuvm EBLJXgq/4ZXmAiG+MrobuEA0eZGQrxyivQ5OslaDnbIJ7Ob41W5cSYefwd5Fe06vpi3y uXIJHvTipd6z+0Ilzlf8GkfeU6sSfCr5HXmJDQfkHxCSpngU02SXh5V1JiOo+5WlmUVD J9xQ== 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=DajTt3UHbvcE5kp3hhW7Dws0luzZvXUDwnfBs2yt6XvhXbx1BtGv+FVBWmzmL4HuR5 Xti9vqXHn/MW/yoOS17crxpTWv0U9fXUJskFE/IgnaC02LFELxpEP4cxW3dRAzH2V2jD hArn2/FTUzpfuqrTNMoBcgzGEis4rLXdO1J99eniWc1CYsLT+NEus859GjHJCWs3K76Q w/5v9IHzxLZSPcQqMmzVgZARas36q28DR0ro9hGUXV7mtqdX4CVzHYndWdcXoEccsYFU yo8bDKz7i8bPX5kJQjh5sTwZ6P8jMukbM9ix/BZps8FDD+dEFqfRX8YUxjyoqGfTsTol ewKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=pe6e21nu; 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 t35si7607356pgm.450.2020.11.13.05.50.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Nov 2020 05:50:49 -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=pe6e21nu; 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 279486E528; Fri, 13 Nov 2020 13:50:35 +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 724D36E4FE for ; Fri, 13 Nov 2020 13:50:24 +0000 (UTC) Received: by mail-wr1-x444.google.com with SMTP id b6so9994436wrt.4 for ; Fri, 13 Nov 2020 05:50: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=pe6e21nu0qjtMO7L/dhgnVP1pOLq2uLl2Q603f2mIEfsxLZ4RIF5ndrN5ElCTk5gBH qQChgdrqm4R3PWyX5mMgOaxx9OkofEfBCcsS2ylOlDJ7yGlIIK5W9xGGJPcsDPMjho8J 0j2P0H2AQeAsAZf+VeoXuXFXESasVb2kJfTC2fFe3IqwTvNbzmL61XTiAJLVbf//ktvE 7wgdTtkmRnKSQmwwcqNylRCy7SZdv0M1aolSP2I49SYf0yYufITdguFUZ3pxAGSsFjQ3 3Wi/1IjSnNLf+E/nmecH+3SNI7gxA8ulpguIdKsungNlVSzRdzgfEjtTVghmCWTbEB79 ZvZA== 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=nLOoLrLUYogTHp3ngqzr60Chn/QrEapmgCan4mT6SzjQPfc6UKi63WyRwDlVISQZJR t5Jl2qJVv50ReNm0KqVsl3uOb6VSjz/sMpt5tN23ds9PCw2NbNqOvcnJ51jhVy6k/3Kb Hd0VwxwpZQjybiwPkbZFNFOCRsV4rZ2ywiWxqqIcnC82wwgeSEvRyBKnLOa0MYA8IgKX idc1XcNuCGtVgU8WMmenZNYg5+BLEJ3CHJgfy5g103Ytt9nM0as7qHvTUZNjfTMxX6Au CWu6S6VwpUGKS42wPACpAyIs1St5eaCNDGDVYZwDu5bl40pp118X074AoIukJ7qhSQ+f zrLA== X-Gm-Message-State: AOAM533WBKsLZki0sCugVGKMUqiHaTkRl5H3qjQCJWua9Rv+8v1M7puQ T7jRekNHveiNhPJtoXjsprHYaQ== X-Received: by 2002:adf:f852:: with SMTP id d18mr3466397wrq.232.1605275423174; Fri, 13 Nov 2020 05:50:23 -0800 (PST) Received: from dell.default ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id t11sm4561614wrm.8.2020.11.13.05.50.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Nov 2020 05:50:22 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 33/40] drm/drm_dp_mst_topology: Remove set but never used variable 'len' Date: Fri, 13 Nov 2020 13:49:31 +0000 Message-Id: <20201113134938.4004947-34-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201113134938.4004947-1-lee.jones@linaro.org> References: <20201113134938.4004947-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);