Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1949354ybv; Fri, 14 Feb 2020 08:43:54 -0800 (PST) X-Google-Smtp-Source: APXvYqwZZxDG4gE0Nd0HDw+3HjqWc17UQR+o8vw+G53hk57bJ+SR3v+8wiaplcLe11p6xeSA5eGR X-Received: by 2002:a05:6808:8cd:: with SMTP id k13mr2564462oij.4.1581698634499; Fri, 14 Feb 2020 08:43:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581698634; cv=none; d=google.com; s=arc-20160816; b=k1JN6NxeDD08X8KEOnyVxy8kI0QEwgOn7X6U0pp/N6vIXbS8nCKESFvj/OPBVRTZwE y21QesNhwsqEmNSnGp6834fYP/efFrYXDjfm016ZEgLqa5i8Pn+S0IUZCuCkMREaCrXL LJpq9q96faINlKHs/AbuzhWd+tE/OFic5PQctEpTZ//HVtaCt4Gbg3qh/jHvbSGXX6NF 5rXzskngXsVNiDFmkuNX8M+XTCDIqwrg15nnbSKwAmhIEw+41HUKfvSLgBVAao50LeiC oIk+2eBlHOHMYpNowf7ggPKSkfQOkvj6Q9XtMGoqZiosNT8jyzPDCKT9nBJjQ+qHdxlj UtaA== 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=hjlDDUrjmRfhCIGbPHeOzIeZe9SMK8S0CXZQTAjxNHY=; b=RBPAD+Nz5r1El4AVIbeNlLzzIHTlLSEC+d1bKxnjwUut1VQFHEJtE5mPB2WfcLbqtH nV74AdUsCbFM2d6+/ioL3n8NMHj658J7wdg8InE37hEp60NInvDljAompPITHCen8Mx9 gtuCqzQw4Hz71LEhqIEsLYdb61NSddGxmfgIRAn+5VVwTFn8avRcB9jCgiHGtFtiKDip Q2DOqk3uI5fI4E6rJEGb4Vm3cXSQ5RsdHUq2TG9hEP6vHTOCrWNDP/QyzpYuwgZcXt/a 1hplyQ9zw0tyYY1jBLA44188V+tvI8AX4SqWf9A5VW9jYYy9xWo7TzNRBw6QtP6si3JR 9BCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fdzy4aJQ; 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 k128si3025378oih.274.2020.02.14.08.43.43; Fri, 14 Feb 2020 08:43:54 -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=fdzy4aJQ; 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 S2393966AbgBNQnD (ORCPT + 99 others); Fri, 14 Feb 2020 11:43:03 -0500 Received: from mail.kernel.org ([198.145.29.99]:57390 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388645AbgBNQWM (ORCPT ); Fri, 14 Feb 2020 11:22:12 -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 1C964246E2; Fri, 14 Feb 2020 16:22:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581697332; bh=TC/KpPcIPU52VDqpKV9ZMspVLevk1JgSEAKgRSDF0mk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fdzy4aJQVLqdUVlbDUzfm5VuWfE7yR9rG0fgLT1OcqIshCHoTantsVuMvfw4uJhLS vyJxV7nV++JqtBGH34ajpI4iM/BcaRk9xSFUYGb3Q1iCX8mLtkgeNr7gWMqgibQ29h cgQ5C+cDSsE8ON60RkKt3LoWUCjM/jifNnyBjgDc= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: zhengbin , Hulk Robot , Daniel Vetter , Sasha Levin , dri-devel@lists.freedesktop.org Subject: [PATCH AUTOSEL 4.9 039/141] drm/gma500: remove set but not used variable 'error' Date: Fri, 14 Feb 2020 11:19:39 -0500 Message-Id: <20200214162122.19794-39-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: zhengbin [ Upstream commit a5eb29a9d2fc03d07af7d02f6c2e7ae1e6d985f9 ] Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/gma500/psb_irq.c: In function psb_sgx_interrupt: drivers/gpu/drm/gma500/psb_irq.c:210:6: warning: variable error set but not used [-Wunused-but-set-variable] It is introduced by commit 64a4aff283ac ("drm/gma500: Add support for SGX interrupts"), but never used, so remove it. Reported-by: Hulk Robot Signed-off-by: zhengbin Signed-off-by: Daniel Vetter Link: https://patchwork.freedesktop.org/patch/msgid/1573828027-122323-3-git-send-email-zhengbin13@huawei.com Signed-off-by: Sasha Levin --- drivers/gpu/drm/gma500/psb_irq.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/gma500/psb_irq.c b/drivers/gpu/drm/gma500/psb_irq.c index 78eb109028091..f75f199c84311 100644 --- a/drivers/gpu/drm/gma500/psb_irq.c +++ b/drivers/gpu/drm/gma500/psb_irq.c @@ -207,7 +207,6 @@ static void psb_sgx_interrupt(struct drm_device *dev, u32 stat_1, u32 stat_2) { struct drm_psb_private *dev_priv = dev->dev_private; u32 val, addr; - int error = false; if (stat_1 & _PSB_CE_TWOD_COMPLETE) val = PSB_RSGX32(PSB_CR_2D_BLIT_STATUS); @@ -242,7 +241,6 @@ static void psb_sgx_interrupt(struct drm_device *dev, u32 stat_1, u32 stat_2) DRM_ERROR("\tMMU failing address is 0x%08x.\n", (unsigned int)addr); - error = true; } } -- 2.20.1