Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2506872pxb; Mon, 11 Jan 2021 11:22:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJzHlHvOKQrNzsfkbD3l9y8PCibXJaYly63XlTb/5kpso8TJIQsxzgtrGuUZfecHxKzgSJeP X-Received: by 2002:a17:906:6b88:: with SMTP id l8mr681071ejr.482.1610392956612; Mon, 11 Jan 2021 11:22:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610392956; cv=none; d=google.com; s=arc-20160816; b=uY/1Gkq9Cx56hvXR26jsYSmeT3rDfxpjbunAL8Aq2iR6m6I1jFdroeWPc0GqiSzdKx +9jSXxB/t2WNdSQSn8/usVacfhU+jpj5Oh7dsuZWUF8GajG9ZekDSc+VyegBP0Rdj8AO aPCJny41J6e3D7Xh0Tz3bPNKhbxOygIxMI4oKoGuuvUWrNZ7h2YOvc9rSw4hCUycFDjf gDuZn3FRv/iHhoNsibNgk8ou3wuiUqabBO7M+Ps7V5MUXrHXFL1NpLvfIqXmF1waOQv/ QHuG8mK5rR9alt24qSUvq0LA8avhjdAgJHJbYQLMxly3ZhA3cfwcJex2CMZg2Tm/kkvS 10BA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=GBLSZTPS8qk7rY11VgJobcJSdYVa2Sl7IRQcchF4a+M=; b=cELlUxnOTBxPdWFtD7EpGWZENbfQrXSGkMJB46h7hKFPS6hZz7YhdCbe4E4sLMfFkJ YGRXgNCdH+HqB/8JIthrgF5K0BkOU+XlOPSpG/RPbZExC+hVcxbJluhVp/NegIt5C7+T magAu/zz7YoEAvh9xCUpErZKd+RQPgAVKSCpPg2T825WjAdmBXW5fRLzNPW45lXe4nYt 4pup7BralAV9eW7D2Aj/8jWFujUqxt4+3RFR5/Y6FZuRYkCmhqvpBMOVJUuE0UAorFm7 IqkZN8BlqkLaK5IYmzP9pEjI4vrCYY8dRQdbIuKom+coJ/wx77xxovYGhJJp9kQhYEC5 y3Pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uEgsGHtL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 1si259932edv.426.2021.01.11.11.22.11; Mon, 11 Jan 2021 11:22:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uEgsGHtL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390864AbhAKTUP (ORCPT + 99 others); Mon, 11 Jan 2021 14:20:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729848AbhAKTUO (ORCPT ); Mon, 11 Jan 2021 14:20:14 -0500 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54AB9C06179F for ; Mon, 11 Jan 2021 11:19:34 -0800 (PST) Received: by mail-wm1-x335.google.com with SMTP id 190so255178wmz.0 for ; Mon, 11 Jan 2021 11:19:34 -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=GBLSZTPS8qk7rY11VgJobcJSdYVa2Sl7IRQcchF4a+M=; b=uEgsGHtL1R1LmYWVtAlgWHzqWKe0ZR0/dvXOMx1Xo/D9OSPyNzU/zd67KNHNnXjLmU 8O0UZGjC0CM0GHTEdGIku+WcS9c1+U5hUQSbQuQUPCxycEj3Myn+Vs38kxAq1kgCAhiD VHVhw7sfXF+XNDVKGVTfRfCJmDgZXho3+G9/t3Z7M4qXJ4jEQ+ubQ/OLOMiwLn9dyARp 55Q/M5kPLPxlEbf1QZHnHJahZKiI92+p4ljKzbsWOgE4e9Rh2sf9R4dq+1nO/Uoa1zrF i6zsr74q+nNxm7ILEhqR/DZrAjHLJXfqnTtzjMiUPSvBGYEUMzxoclZAbim4ZL55781t C4+w== 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=GBLSZTPS8qk7rY11VgJobcJSdYVa2Sl7IRQcchF4a+M=; b=nw3IYRS0vgeyOF2trHwEccR/H/22v904bGaIuu2sO1atpx66glkQx6zgMmCkyNalxS iAZ0OdsIUFTnr91jZoOMMK1nBi3IIw6Do/P3E15el5/I1b67VpG+I1Wn57wKct2uXMbF kFd6fsTOpOyfZvsvFnXhgKfdPTx4LWoLFi9SQOFET0j154AV8SwbmTQEIwWP+cf0zcw6 004hg6FkfXzposailijI+Eu6vMeVOqEbuwnW/i4NtRGjKsulhpOgQ3i/PREqsIhqRMxV wr+urU1floV+liC7FEdBXPPqHn9zxHombTQbRLiFx6rWZ0bhw+lOzOcl7OASpb+cSkNI K1VQ== X-Gm-Message-State: AOAM530RzjlFyghZLD9jM9HQ++VSfZeKNYrOZrY+qrFZQPACTprcifKL r2/eFOw3iZSxRMvmbyEWr7PUuw== X-Received: by 2002:a7b:c0c8:: with SMTP id s8mr259768wmh.123.1610392773083; Mon, 11 Jan 2021 11:19:33 -0800 (PST) Received: from dell.default ([91.110.221.229]) by smtp.gmail.com with ESMTPSA id n3sm778090wrw.61.2021.01.11.11.19.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jan 2021 11:19:32 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Harry Wentland , Leo Li , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , David Airlie , Daniel Vetter , Mauro Rossi , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [PATCH 02/40] drm/amd/display/dc/dce/dce_link_encoder: Remove unused variable 'value0' Date: Mon, 11 Jan 2021 19:18:48 +0000 Message-Id: <20210111191926.3688443-3-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210111191926.3688443-1-lee.jones@linaro.org> References: <20210111191926.3688443-1-lee.jones@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_link_encoder.c: In function ‘dce110_link_encoder_update_mst_stream_allocation_table’: drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_link_encoder.c:1506:11: warning: variable ‘value0’ 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: Mauro Rossi Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c b/drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c index 0ef2f4d9d8bf3..1e77ffee71b30 100644 --- a/drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c +++ b/drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c @@ -1503,7 +1503,6 @@ void dce110_link_encoder_update_mst_stream_allocation_table( const struct link_mst_stream_allocation_table *table) { struct dce110_link_encoder *enc110 = TO_DCE110_LINK_ENC(enc); - uint32_t value0 = 0; uint32_t value1 = 0; uint32_t value2 = 0; uint32_t slots = 0; @@ -1604,7 +1603,7 @@ void dce110_link_encoder_update_mst_stream_allocation_table( do { udelay(10); - value0 = REG_READ(DP_MSE_SAT_UPDATE); + REG_READ(DP_MSE_SAT_UPDATE); REG_GET(DP_MSE_SAT_UPDATE, DP_MSE_SAT_UPDATE, &value1); -- 2.25.1