From: Ralf Baechle Date: Wed, 29 Mar 2006 13:10:09 +0000 (+0100) Subject: [MIPS] Remove redundant initialization of sr_allocated. X-Git-Tag: firefly_0821_release~36095^2~43 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e76038dcc06fc22134abdc554338d444f87791c6;p=firefly-linux-kernel-4.4.55.git [MIPS] Remove redundant initialization of sr_allocated. Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c index 4efe3f2eba63..0688bd7605dc 100644 --- a/arch/mips/kernel/traps.c +++ b/arch/mips/kernel/traps.c @@ -976,8 +976,6 @@ void mips_srs_init(void) #ifdef CONFIG_CPU_MIPSR2_SRS shadow_registers.sr_supported = ((read_c0_srsctl() >> 26) & 0x0f) + 1; printk ("%d MIPSR2 register sets available\n", shadow_registers.sr_supported); -#else - shadow_registers.sr_supported = 1; #endif shadow_registers.sr_allocated = 1; /* Set 0 used by kernel */ spin_lock_init(&shadow_registers.sr_lock);