Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1931202ybv; Fri, 14 Feb 2020 08:25:47 -0800 (PST) X-Google-Smtp-Source: APXvYqx7LWzWw68gT2/BJXHdu9/SwnQD2+0+b1Gqf2UXa35dirCsA9Br1NrhRLFnU2ChscyV0Dsm X-Received: by 2002:aca:1a17:: with SMTP id a23mr2334274oia.84.1581697546991; Fri, 14 Feb 2020 08:25:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581697546; cv=none; d=google.com; s=arc-20160816; b=EkK8KOo33SsDcq2hg7ftz0fF5nWhW7HXDYpWEuWfnLyoW6UfRK4oXGUugVg+TJ2rTm y+6zHH0hKKLn4+vTttNULsw6cJsmnHEL9y8uXPX6V3u7vtDLNAzWkyavTLZbwdZLUpdV PLw7bGILMz5Ox6scvwhODdAZ53EGUnmwfYAy4rPpE9wJhEmrhLV4b44LJPqeAz+Co4jh 2swzPKVPqGn5ZQWCaJ38FbF9Jxl1tNEfZ8ZQB8UoGLx9HvadY7BiNxnkx/8F4fO0Q7hZ V1CPyq5K75SoUerB8+8mcGu8sKo9CZMGhOT5BpM0krpCO7CP9SHxl8YoUNOfBOo4tXPo aOlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=NvNHurq5Yo/YrIFP38fV5bc+rWnFiwgRC6+naVN/6YQ=; b=QUQmkdMpkpzMOfZlmVD2J9j3mVJ489Rui2yO3wwyZnRrolDPp2z4XEY/YjaMKJKQ5X Rvk0UnNkBAaWDeYCxqZrXMoxNtafSDCxyCf80D7iL33LkDRV6j+06Zz/cVzaPsu0JXuE dAGz0b68TE5DsZj4NYWBrPnj3hqv+hAJDiHli/0NUZPy/14SY1Iwtz2BVIyJgzX+f0qm fzjNCW0IOPSt56/vIkKPvmLFvQvTNGmt1dT/PYtrObMfA4wV0UcCsqh4eKWjL0/+gxix VMEgtWniEM4XZgu9ijBeGGQYpYb4ecsMbkKp9i4gPXpev3hsxzcEHEKMBD69X+yu3pYe H1fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vVhTtt7W; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t20si2685317oih.70.2020.02.14.08.25.35; Fri, 14 Feb 2020 08:25:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vVhTtt7W; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405590AbgBNQZA (ORCPT + 99 others); Fri, 14 Feb 2020 11:25:00 -0500 Received: from mail.kernel.org ([198.145.29.99]:59072 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2393331AbgBNQXF (ORCPT ); Fri, 14 Feb 2020 11:23:05 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9B03124761; Fri, 14 Feb 2020 16:23:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581697384; bh=IBGB+xDX7Tk9f82+ViaLQcfskmpjmicN/oxDPAoTq6I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vVhTtt7WjUDxmZgra30XBy4MRMBKuRb/COeshJC3Z4aEsj+IsOYuzAFVFoTun8/6s 2vYG0CvqEbpaLcLNvdoUXNQIjZI0Ar65e7Y4pAVmwFxQg7dnVIJEQ1jJqTMyMpUn3L Hhk0Vrw5Lglq2Ewm+OHlye/g1c2EFaqIw/RfFPkI= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Chen Zhou , Hulk Robot , Patrik Jakobsson , Sasha Levin , dri-devel@lists.freedesktop.org Subject: [PATCH AUTOSEL 4.9 080/141] drm/gma500: remove set but not used variables 'hist_reg' Date: Fri, 14 Feb 2020 11:20:20 -0500 Message-Id: <20200214162122.19794-80-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200214162122.19794-1-sashal@kernel.org> References: <20200214162122.19794-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chen Zhou [ Upstream commit 72f775611daf3ce20358388facbaf11f22899fa2 ] Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/gma500/psb_irq.c: In function psb_irq_turn_off_dpst: drivers/gpu/drm/gma500/psb_irq.c:473:6: warning: variable hist_reg set but not used [-Wunused-but-set-variable] Reported-by: Hulk Robot Signed-off-by: Chen Zhou Signed-off-by: Patrik Jakobsson Link: https://patchwork.freedesktop.org/patch/msgid/20191227114811.14907-1-chenzhou10@huawei.com Signed-off-by: Sasha Levin --- drivers/gpu/drm/gma500/psb_irq.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/gma500/psb_irq.c b/drivers/gpu/drm/gma500/psb_irq.c index f75f199c84311..518d7b4456bf1 100644 --- a/drivers/gpu/drm/gma500/psb_irq.c +++ b/drivers/gpu/drm/gma500/psb_irq.c @@ -471,12 +471,11 @@ void psb_irq_turn_off_dpst(struct drm_device *dev) { struct drm_psb_private *dev_priv = (struct drm_psb_private *) dev->dev_private; - u32 hist_reg; u32 pwm_reg; if (gma_power_begin(dev, false)) { PSB_WVDC32(0x00000000, HISTOGRAM_INT_CONTROL); - hist_reg = PSB_RVDC32(HISTOGRAM_INT_CONTROL); + PSB_RVDC32(HISTOGRAM_INT_CONTROL); psb_disable_pipestat(dev_priv, 0, PIPE_DPST_EVENT_ENABLE); -- 2.20.1