lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200227070502.106762-1-yuehaibing@huawei.com>
Date:   Thu, 27 Feb 2020 07:05:02 +0000
From:   YueHaibing <yuehaibing@...wei.com>
To:     <ralf@...ux-mips.org>, <paulburton@...nel.org>,
        <tglx@...utronix.de>, <sboyd@...nel.org>,
        <geert+renesas@...der.be>, <f4bug@...at.org>,
        "Thomas Bogendoerfer" <tsbogend@...ha.franken.de>
CC:     YueHaibing <yuehaibing@...wei.com>, <linux-mips@...r.kernel.org>,
        <linux-kernel@...r.kernel.org>, <kernel-janitors@...r.kernel.org>
Subject: [PATCH -next] MIPS: pic32mzda: Drop pointless static qualifier

There is no need to have the 'struct device_node *node' variable static
since new value always be assigned before use it.

Signed-off-by: YueHaibing <yuehaibing@...wei.com>
---
 arch/mips/pic32/pic32mzda/time.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/mips/pic32/pic32mzda/time.c b/arch/mips/pic32/pic32mzda/time.c
index 754924f26089..7174e9abbb1b 100644
--- a/arch/mips/pic32/pic32mzda/time.c
+++ b/arch/mips/pic32/pic32mzda/time.c
@@ -23,7 +23,7 @@ static const struct of_device_id pic32_infra_match[] = {
 
 static unsigned int pic32_xlate_core_timer_irq(void)
 {
-	static struct device_node *node;
+	struct device_node *node;
 	unsigned int irq;
 
 	node = of_find_matching_node(NULL, pic32_infra_match);



Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ