From patchwork Wed Jan 13 08:07:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 362042 Delivered-To: patch@linaro.org Received: by 2002:a02:ccad:0:0:0:0:0 with SMTP id t13csp296789jap; Wed, 13 Jan 2021 00:08:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJz6N43Nn8+S/9JxoBs1/1GkWM9IaSqEAkuSPb0dgarat7iom1e7MIieA0nJeb+3EY70cZj8 X-Received: by 2002:a17:90b:11cd:: with SMTP id gv13mr858691pjb.21.1610525300119; Wed, 13 Jan 2021 00:08:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610525300; cv=none; d=google.com; s=arc-20160816; b=0AOwCUhmcKSzfJdnG6t/35hF8nBYEMboJgnBPTN6gwQa5qLaFGjvGpFesMBvvkJz4a FLYawI3d73vYrARVq3jLnjCcsOG3VM4GukJed+oCDBYRGQaP929fqiUv/KOBR6SSJSFA z51BxmvH8sf3FAP1QT3JQOgdsgwF0Q/h6XGHCGZDlZZNuxaG3eZQaO2vf/Db/Hb9QpAP BJiDWr+RH5oXqhOTFcXkJvbu5P5LnPOwn4jou3YsQ33x+M7Fp75GxQIjkhMOfM1BtAH3 LwW93P6K1N2pMk63LBhKes0o1mPZoCQRfXh/1wejuM6VI7mol0pCMNUdtPyStU0IpbBI q3gw== 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=CKJUkNxriFFnGG/eaOXS8MRhwejMezrHo4Rt4zedDFE=; b=VByrFZe51FRHRHBZ4sBziYFJHUb1pThN32L/VFFcU9ysa3EbmstE8ZyBFK3NqaPB/d NOKPowy0ixvAuyAaxV7Ju294UpKEeKmFDkELGhNw4sLwigHt1WrmbabB1EK70VWExC8Q dbfxSiMDXVyOA20NTPhX+p5xqtKJMPdCYDzkQV5ZBfS5zboEf5ZhmX5gF0odQy35EmsX At4W/03pVMnCRv9pGZ30YlglHEGx2dNJ6xEoU32k9JLXXD6213R1wuk7tZgdukt08Y1V kkhAVf9mJHm2IllQzIWZgXKcGzTnZHIV2debZzsHtQh1wsRdTbOIpfzLMMSoFiw9RZZm uRUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=FrwgrjKb; 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 mp17si1701976pjb.26.2021.01.13.00.08.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 00:08:20 -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=FrwgrjKb; 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 0CB6A89FEA; Wed, 13 Jan 2021 08:08:10 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4D03D89F45 for ; Wed, 13 Jan 2021 08:08:06 +0000 (UTC) Received: by mail-wr1-x431.google.com with SMTP id d13so1039129wrc.13 for ; Wed, 13 Jan 2021 00:08:06 -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=8xdwLDrcWYKJZSMYMYuV8riE8ORgcBnhB0CHa1Q/JBs=; b=FrwgrjKbVxt3s7pvTRS7s+XO01JRsO9XZYJHRIrzN6pluG3wMDB1Q/zF5eAgINfD5m RFBF7is2Nd1xdqHRGNGA/83nam7awxbCz5WzRe6K2JPtLxALiOUcqafRk5ffZ+N+EPLS ekCBhJvOuHkTndHv+9B7EE0zHCswpCoLDO8kZrc51wWWeWTYwmynloBfUQKEYJpQgCnp UEIPrnCJ0CxXXncxIGQSZPDTyg3azKpfqjcySttB1j7+C9klBZTczEAqTmBmmCsO7LN6 pEC7tTfH8PbvCsAjD7q/AOyR6vA5aWyeIPdEiaCDsflyT1/Ry2lYfJdFst6an0ArQqYJ Yzaw== 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=8xdwLDrcWYKJZSMYMYuV8riE8ORgcBnhB0CHa1Q/JBs=; b=dJACWUqmpWMZdKm/LsOWDWQjaDkJd9FVpVQqmpDypMfunt5HhnTggxae4SAH/zzRfk bgWlsgJYrRnXkx/F+5AJOTvLzzDIecBwqg91gXsCNhpy0It6lyB7J8aHZVnn0Sxnlqpn 17HCazjLKvae5aRhXbFYTdyLTTMZX5TOsWVBC+NTMYB8RyI89Dpznv1Y0jQU402gJd0v cO3e5LZDeWk+M4ZHWDW1BzUzUeml5H5j+4k2oV0ttqSKyTy1gzCZrtmFt1RRooW7F2TF IsG+H1lQt5fdGst7SgOwUA+sm1DYokBGzZiuGgCGAAlBYL7Xbbns1Chx9qcS3KIVlJhN QPzQ== X-Gm-Message-State: AOAM532FKL7NiNm0Qo1dq8EJE6u0ixxIy+wUQmkMoJHWwc3cGxtDHW12 oAyMBXl0c0xK/eB3RX0FRJZBjQ== X-Received: by 2002:adf:ec41:: with SMTP id w1mr1217792wrn.12.1610525285003; Wed, 13 Jan 2021 00:08:05 -0800 (PST) Received: from dell.default ([91.110.221.229]) by smtp.gmail.com with ESMTPSA id r20sm1642486wmh.15.2021.01.13.00.08.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 00:08:04 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 07/30] drm/amd/display/dc/core/dc_link: Remove unused variable 'status' Date: Wed, 13 Jan 2021 08:07:29 +0000 Message-Id: <20210113080752.1003793-8-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210113080752.1003793-1-lee.jones@linaro.org> References: <20210113080752.1003793-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: Leo Li , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, David Airlie , dri-devel@lists.freedesktop.org, Alex Deucher , =?utf-8?q?Christian_K=C3=B6nig?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link.c: In function ‘query_hdcp_capability’: drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link.c:599:28: warning: variable ‘status’ set but not used [-Wunused-but-set-variable] Cc: Harry Wentland Cc: Leo Li Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/amd/display/dc/core/dc_link.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link.c b/drivers/gpu/drm/amd/display/dc/core/dc_link.c index f4a2088ab1792..8ccda8b9ac2eb 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_link.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link.c @@ -596,8 +596,6 @@ static void query_hdcp_capability(enum signal_type signal, struct dc_link *link) dc_process_hdcp_msg(signal, link, &msg22); if (signal == SIGNAL_TYPE_DISPLAY_PORT || signal == SIGNAL_TYPE_DISPLAY_PORT_MST) { - enum hdcp_message_status status = HDCP_MESSAGE_UNSUPPORTED; - msg14.data = &link->hdcp_caps.bcaps.raw; msg14.length = sizeof(link->hdcp_caps.bcaps.raw); msg14.msg_id = HDCP_MESSAGE_ID_READ_BCAPS; @@ -605,7 +603,7 @@ static void query_hdcp_capability(enum signal_type signal, struct dc_link *link) msg14.link = HDCP_LINK_PRIMARY; msg14.max_retries = 5; - status = dc_process_hdcp_msg(signal, link, &msg14); + dc_process_hdcp_msg(signal, link, &msg14); } }