aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2006-03-29 08:10:09 -0500
committerRalf Baechle <ralf@linux-mips.org>2006-04-18 22:14:13 -0400
commite76038dcc06fc22134abdc554338d444f87791c6 (patch)
tree11d072ca3f089c18b11057fdec166c3a81a0120e /arch/mips
parentb4d05cb9cbbf206ab0dc2c1740938b87b3d3ee44 (diff)
[MIPS] Remove redundant initialization of sr_allocated.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips')
-rw-r--r--arch/mips/kernel/traps.c2
1 files changed, 0 insertions, 2 deletions
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)
976#ifdef CONFIG_CPU_MIPSR2_SRS 976#ifdef CONFIG_CPU_MIPSR2_SRS
977 shadow_registers.sr_supported = ((read_c0_srsctl() >> 26) & 0x0f) + 1; 977 shadow_registers.sr_supported = ((read_c0_srsctl() >> 26) & 0x0f) + 1;
978 printk ("%d MIPSR2 register sets available\n", shadow_registers.sr_supported); 978 printk ("%d MIPSR2 register sets available\n", shadow_registers.sr_supported);
979#else
980 shadow_registers.sr_supported = 1;
981#endif 979#endif
982 shadow_registers.sr_allocated = 1; /* Set 0 used by kernel */ 980 shadow_registers.sr_allocated = 1; /* Set 0 used by kernel */
983 spin_lock_init(&shadow_registers.sr_lock); 981 spin_lock_init(&shadow_registers.sr_lock);