Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp1794635ybd; Thu, 27 Jun 2019 01:35:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqwqv8bLA6GKm+hNKS4lrquTvUSU7Z175f1MEebALiyGCdyO1wL/ZqCP3tzwi1q8W6OgRvGF X-Received: by 2002:a17:902:20ec:: with SMTP id v41mr3083489plg.142.1561624529790; Thu, 27 Jun 2019 01:35:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561624529; cv=none; d=google.com; s=arc-20160816; b=mK3aGbK8bnFn38T357GCoC6vMxG45H4YQ03GfS8SeUTvlmAQ5wH0UQbUlquvtwkiCa h87aLJrDI0FCKMliTPJD3OjLijTltugbA83ulaUN6PrYoY49m2s5pfL0IZ5tH4syURZp rOHigfwTs34cAPoaWsoHjVY1lZ5LJHJvWFXKLz5Ock8ZYGzoQ8H9tt18UgFlrTDDtW+i +pmqjanz9sJPAmseoQTyLN+2fgdljxkN5o2KwoWuwi8j63NYcxpUp4gw9oGutXsGyiJT BW9wCS3ITlz2guQWUAsrvILRTd03F8XwYgf+C5kfwc2G33KQhhS/zc7v0E5QdvQ8W7tO XtOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=pL8dIdDRRR0f0oihVWvRAV0Y3VQl+T0ytK1Ju8LVSAk=; b=pbcHCclxJ9U82V1iOTVbbE0/a/YuR4UKyeBs8XccxHUd49BO7Spelx7hwpqkKdEKCM oR8PwkYUNRee3TdITIR3p4+f93ODYLwAWVAVmxUJ5Ll6kQ9RRsF9E6gGqIedQCLSidkA H2Q9V56Zv8rY4mJoUeNmrggbPkXjTvsXXH3dC5FUN4PUZBu7daYlcKScVw4IOVgItG2j 3ycE9Q9JM4aQT9Pl4CTkbg4msSY1CCaHBftROgIV+rJYyDns3sa1D7ODrFwOoCcux2nS 9jryLdkW2RZzm6KRHit19mpojUx49ZH906IYoiOcbP74SSpE6Q3hiyYO+HY2Zyb8i1Ll Wytg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=SCdBkO+j; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g10si1511744pgh.472.2019.06.27.01.35.13; Thu, 27 Jun 2019 01:35:29 -0700 (PDT) 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=@sifive.com header.s=google header.b=SCdBkO+j; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726508AbfF0Ie6 (ORCPT + 99 others); Thu, 27 Jun 2019 04:34:58 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:33934 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726293AbfF0Ie5 (ORCPT ); Thu, 27 Jun 2019 04:34:57 -0400 Received: by mail-pf1-f195.google.com with SMTP id c85so866925pfc.1 for ; Thu, 27 Jun 2019 01:34:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=from:to:cc:subject:date:message-id; bh=pL8dIdDRRR0f0oihVWvRAV0Y3VQl+T0ytK1Ju8LVSAk=; b=SCdBkO+jaQI/+32tsem4MYwzEIOMI3hZVuw9WMUP+0FE7yL9ObALw9j28rf2xf1fB2 0k4ChEaKwpDNuJFt8Tq5B0TyP+w/jxmZzR/6VaJL8AD7ERyFf2whc9aHd04XDY2rhz8l gxA+2qt5QwU9jN5yDFUmKfpxF2Umndj7fxKmMiwbrYbRDMgl69fS4aEd1t82BpCpI6Pb yVRc92Gs409pSpHO0uM0ChMDieNkSvMPtLCtHXp66jykOqer+Jzrh1XxA7rxTsIEnWHp sEQGlVa9v4BcMQmow+58cBwGzSBFsBKfi26+KpJWDyMZ0IKWKcz+JtgDj6di0RtXYPvc Q1MA== 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; bh=pL8dIdDRRR0f0oihVWvRAV0Y3VQl+T0ytK1Ju8LVSAk=; b=r2sazLapZ8ndllquAeFYBFJx/ZKa1wHVDKS/69sElmjKifhd6qufB6wi5vcGzF0mH5 6VWlcdIUCWkImBJeIuqyFMLm0YNhMLtn7EJc2pT83m6iC/zx2C3H5AiZDuUMoi4WpMMi j2KoLl6lWqSoEf7APJvTGhVI5D0PV+y4l/js2EPDz5QtOJJiJoEAacCjYO//H0aG5ZFU 9yXzGaauNMFI7W8fzRGkUzFDB/WxC2M/3o0EwBiV814OQ1803Ci5pIVHuH1SgzICQXT9 KqAjY/1AshCc4xTPLaPbodlfRXNuyJaweKoaN9ZX3CK8TcFbDgzA9vKhrbSH0YKy4hl8 wbAQ== X-Gm-Message-State: APjAAAUAapOlpKjbBqItpHjGnpaMtNhNi/cxYLcBXrteKR1V3YUIub5I T4z41nHzN4auBcboL0c1ky6JCg== X-Received: by 2002:a65:63c3:: with SMTP id n3mr2571078pgv.139.1561624496816; Thu, 27 Jun 2019 01:34:56 -0700 (PDT) Received: from buildserver-90.open-silicon.com ([114.143.65.226]) by smtp.googlemail.com with ESMTPSA id n19sm4001003pfa.11.2019.06.27.01.34.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 27 Jun 2019 01:34:55 -0700 (PDT) From: Yash Shah To: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, paul.walmsley@sifive.com Cc: palmer@sifive.com, aou@eecs.berkeley.edu, sachin.ghadi@sifive.com, Yash Shah Subject: [PATCH] riscv: ccache: Remove unused variable Date: Thu, 27 Jun 2019 14:04:46 +0530 Message-Id: <1561624486-22867-1-git-send-email-yash.shah@sifive.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Reading the count register clears the interrupt signal. Currently, the count registers are read into 'regval' variable but the variable is never used. Therefore remove it. Signed-off-by: Yash Shah --- arch/riscv/mm/sifive_l2_cache.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/riscv/mm/sifive_l2_cache.c b/arch/riscv/mm/sifive_l2_cache.c index 4eb6461..3052a42 100644 --- a/arch/riscv/mm/sifive_l2_cache.c +++ b/arch/riscv/mm/sifive_l2_cache.c @@ -109,13 +109,13 @@ int unregister_sifive_l2_error_notifier(struct notifier_block *nb) static irqreturn_t l2_int_handler(int irq, void *device) { - unsigned int regval, add_h, add_l; + unsigned int add_h, add_l; if (irq == g_irq[DIR_CORR]) { add_h = readl(l2_base + SIFIVE_L2_DIRECCFIX_HIGH); add_l = readl(l2_base + SIFIVE_L2_DIRECCFIX_LOW); pr_err("L2CACHE: DirError @ 0x%08X.%08X\n", add_h, add_l); - regval = readl(l2_base + SIFIVE_L2_DIRECCFIX_COUNT); + readl(l2_base + SIFIVE_L2_DIRECCFIX_COUNT); atomic_notifier_call_chain(&l2_err_chain, SIFIVE_L2_ERR_TYPE_CE, "DirECCFix"); } @@ -123,7 +123,7 @@ static irqreturn_t l2_int_handler(int irq, void *device) add_h = readl(l2_base + SIFIVE_L2_DATECCFIX_HIGH); add_l = readl(l2_base + SIFIVE_L2_DATECCFIX_LOW); pr_err("L2CACHE: DataError @ 0x%08X.%08X\n", add_h, add_l); - regval = readl(l2_base + SIFIVE_L2_DATECCFIX_COUNT); + readl(l2_base + SIFIVE_L2_DATECCFIX_COUNT); atomic_notifier_call_chain(&l2_err_chain, SIFIVE_L2_ERR_TYPE_CE, "DatECCFix"); } @@ -131,7 +131,7 @@ static irqreturn_t l2_int_handler(int irq, void *device) add_h = readl(l2_base + SIFIVE_L2_DATECCFAIL_HIGH); add_l = readl(l2_base + SIFIVE_L2_DATECCFAIL_LOW); pr_err("L2CACHE: DataFail @ 0x%08X.%08X\n", add_h, add_l); - regval = readl(l2_base + SIFIVE_L2_DATECCFAIL_COUNT); + readl(l2_base + SIFIVE_L2_DATECCFAIL_COUNT); atomic_notifier_call_chain(&l2_err_chain, SIFIVE_L2_ERR_TYPE_UE, "DatECCFail"); } -- 1.9.1