소스 검색

[MIPS] Remove redundant initialization of sr_allocated.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle 19 년 전
부모
커밋
e76038dcc0
1개의 변경된 파일0개의 추가작업 그리고 2개의 파일을 삭제
  1. 0 2
      arch/mips/kernel/traps.c

+ 0 - 2
arch/mips/kernel/traps.c

@@ -976,8 +976,6 @@ void mips_srs_init(void)
 #ifdef CONFIG_CPU_MIPSR2_SRS
 #ifdef CONFIG_CPU_MIPSR2_SRS
 	shadow_registers.sr_supported = ((read_c0_srsctl() >> 26) & 0x0f) + 1;
 	shadow_registers.sr_supported = ((read_c0_srsctl() >> 26) & 0x0f) + 1;
 	printk ("%d MIPSR2 register sets available\n", shadow_registers.sr_supported);
 	printk ("%d MIPSR2 register sets available\n", shadow_registers.sr_supported);
-#else
-	shadow_registers.sr_supported = 1;
 #endif
 #endif
 	shadow_registers.sr_allocated = 1;	/* Set 0 used by kernel */
 	shadow_registers.sr_allocated = 1;	/* Set 0 used by kernel */
 	spin_lock_init(&shadow_registers.sr_lock);
 	spin_lock_init(&shadow_registers.sr_lock);