Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp578140pxb; Fri, 8 Jan 2021 12:19:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJye6mRMRPbekhoS1mxEezuHvnsgzwl3Nds/K54eGtNb5xqoKjxs4Jr5RkI+6vjsqzGMYjDS X-Received: by 2002:a17:907:3312:: with SMTP id ym18mr3774350ejb.437.1610137167849; Fri, 08 Jan 2021 12:19:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610137167; cv=none; d=google.com; s=arc-20160816; b=G2g9c+//LeheQvRzc8x2TkhEwQCQiBPGki2nheF7YIh2aiVA4AUmuvKqqABoe9Ivzr j1HoAuue+Cimdrt/S4ZQri2wNfGorxr5CzgJzCRv5tp43U1wKPU9umUOj89r+8BIACMz GCEkNnT7qJ1GdE9a5zy4tysR9zA4BlUxG4eOjzAX4OR9Zn7bRY6ygh/7e3MfrPCMuaQ2 c9hac2zrV5sW4rGQYBbcrju5YFJ+7ODX/Msx22ip5FSbphVfwHihw3j9apQsV8mf+HcD XPYYsIV4YaXtpo1s8HI5vCfra2icYeqJCdc1KCyC23ZqZYF2u82AlBLSVMfL8aoYapD2 xkkA== 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=B0vgdR8naA6iZCQ4IL55g07H1SHyqDXPDametYwo0Pg=; b=0ayHy0tPXpkoidSj3BBQVklYEpyPD7u1dN4g5KSwt7U2SlH/q5JMiya+IOwFzMB/lM v/PPrDP+WpqaGPFKGi0Xuhd/6hLwlpg0s7YctYNoAYrax3WaIQ77yy5brjx4GsusxHh3 2kauBZg0M4y7BJlU5e1toPFn9GpJpDL6xBBXCVXqRR8C1cIwZSUP+PqsvhQgBp3/Eq/R 8S6YHpyJAar4AOYKydx456D37a4HfLQ43ibGbp++Crniuppq9w5hNvIKn6+iLoQ1Ft3g Mzxm32Yi2+oP27TW90FJUrCDTBcrP2VaZFP7FeqrttiJ0nFzLbnYsW3KLCgmhfw7ObFO FnOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="oLM/pC+r"; 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 bm26si3993495edb.528.2021.01.08.12.19.04; Fri, 08 Jan 2021 12:19:27 -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="oLM/pC+r"; 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 S1729294AbhAHUQs (ORCPT + 99 others); Fri, 8 Jan 2021 15:16:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729265AbhAHUQm (ORCPT ); Fri, 8 Jan 2021 15:16:42 -0500 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1210DC061242 for ; Fri, 8 Jan 2021 12:15:41 -0800 (PST) Received: by mail-wr1-x42a.google.com with SMTP id a12so10120983wrv.8 for ; Fri, 08 Jan 2021 12:15:40 -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=B0vgdR8naA6iZCQ4IL55g07H1SHyqDXPDametYwo0Pg=; b=oLM/pC+rSUDP4ZUfp3a6s6i/HWBsHp9Du8iTI2RGZXxY1NVI07AaFBnwpdJlHwG0ri VQWy/Y4lQ4XMyQj7vkEB2ONHZswhsBNlxrWqZDqKyDwMCsD0tvwyuGX5oCvKMYmbJvDb K39uYXCmZbZuRkO4RkxnD88hGmVCmzqPdBvnFKoWaghzSw40LfLtM0F52BlernQZy5A7 0+LUMRcbxP334bSPiCN3m1gjS8U5YoMbdS1BgCd6DO48LnFmd+Q+V4szxYZkFUmqmOix BGN6f5dDtv1T46Dye2RikAAdhcILtMNFQNof7yhedF7tFiwrW4S39SWbEhIwsG5JY1Mu bfog== 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=B0vgdR8naA6iZCQ4IL55g07H1SHyqDXPDametYwo0Pg=; b=lbpVwUftxZH1sRFq7Z40jj9udyHdBKv5jXjZYKi4gr4rY6rgE4qMxLS2Wc8cAraL9F bH7bx5LdJuWHVxDrX6oc5IfhwToe8CDNcWo30PrnOtEjLUd2HzlLvnvqNaS9NF5n/jLA mufcCySxZI+m2HKIZtEf13NxcoMBnCTv6UZ6h5vdYScwJf5WChM11O1qJ6Grx+3P0bP5 O4HkujRQ+8du+nQlhmJq4Vgc2qwzlnh/Q+66lDXoghJKMv/fbccVy0BkC5wCQU4nSr4n nioGr4Im0/Qqc9sHgEWt00tOjovEyI7/3b24IyQj0y2lzQkeSxD68X+IGHEYoFFZ+RDn ZMyQ== X-Gm-Message-State: AOAM531RldqLu5kGndg8RegvKQKTcJ/WPQjQ3cr+rpUiWCuVaPdE7gkd Ng29KHCTSxk7SFqLodOH/dJyEQ== X-Received: by 2002:a5d:6751:: with SMTP id l17mr5243954wrw.73.1610136939823; Fri, 08 Jan 2021 12:15:39 -0800 (PST) Received: from dell.default ([91.110.221.229]) by smtp.gmail.com with ESMTPSA id l8sm15598671wrb.73.2021.01.08.12.15.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jan 2021 12:15:39 -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 , George Shen , Eric Bernstein , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [PATCH 24/40] drm/amd/display/dc/dce/dce_stream_encoder: Remove unused variable 'regval' Date: Fri, 8 Jan 2021 20:14:41 +0000 Message-Id: <20210108201457.3078600-25-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210108201457.3078600-1-lee.jones@linaro.org> References: <20210108201457.3078600-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_stream_encoder.c: In function ‘dce110_update_generic_info_packet’: drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_stream_encoder.c:70:11: warning: variable ‘regval’ 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: George Shen Cc: Eric Bernstein 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_stream_encoder.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_stream_encoder.c b/drivers/gpu/drm/amd/display/dc/dce/dce_stream_encoder.c index ada57f745fd76..265eaef30a519 100644 --- a/drivers/gpu/drm/amd/display/dc/dce/dce_stream_encoder.c +++ b/drivers/gpu/drm/amd/display/dc/dce/dce_stream_encoder.c @@ -67,7 +67,6 @@ static void dce110_update_generic_info_packet( uint32_t packet_index, const struct dc_info_packet *info_packet) { - uint32_t regval; /* TODOFPGA Figure out a proper number for max_retries polling for lock * use 50 for now. */ @@ -99,7 +98,7 @@ static void dce110_update_generic_info_packet( } /* choose which generic packet to use */ { - regval = REG_READ(AFMT_VBI_PACKET_CONTROL); + REG_READ(AFMT_VBI_PACKET_CONTROL); REG_UPDATE(AFMT_VBI_PACKET_CONTROL, AFMT_GENERIC_INDEX, packet_index); } -- 2.25.1