linux-mips.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH[MIPS] fix unbalance brace in mipssim get_c0_compare_int()
@ 2009-07-08  6:08 Yoichi Yuasa
  2009-07-08 15:24 ` Ralf Baechle
  0 siblings, 1 reply; 2+ messages in thread
From: Yoichi Yuasa @ 2009-07-08  6:08 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: yuasa, linux-mips


cc1: warnings being treated as errors
arch/mips/mipssim/sim_time.c: In function 'get_c0_compare_int':
arch/mips/mipssim/sim_time.c:103: warning: ISO C90 forbids mixed declarations and code
arch/mips/mipssim/sim_time.c:116: error: expected declaration or statement at end of input
make[1]: *** [arch/mips/mipssim/sim_time.o] Error 1

Signed-off-by: Yoichi Yuasa <yuasa@linux-mips.org>

diff --git a/arch/mips/mipssim/sim_time.c b/arch/mips/mipssim/sim_time.c
index 0cea932..5492c42 100644
--- a/arch/mips/mipssim/sim_time.c
+++ b/arch/mips/mipssim/sim_time.c
@@ -89,13 +89,13 @@ unsigned __cpuinit get_c0_compare_int(void)
 	if (cpu_has_veic) {
 		set_vi_handler(MSC01E_INT_CPUCTR, mips_timer_dispatch);
 		mips_cpu_timer_irq = MSC01E_INT_BASE + MSC01E_INT_CPUCTR;
-	} else {
-#endif
-	       {
-		if (cpu_has_vint)
-			set_vi_handler(cp0_compare_irq, mips_timer_dispatch);
-		mips_cpu_timer_irq = MIPS_CPU_IRQ_BASE + cp0_compare_irq;
+
+		return mips_cpu_timer_irq;
 	}
+#endif
+	if (cpu_has_vint)
+		set_vi_handler(cp0_compare_irq, mips_timer_dispatch);
+	mips_cpu_timer_irq = MIPS_CPU_IRQ_BASE + cp0_compare_irq;
 
 	return mips_cpu_timer_irq;
 }

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH[MIPS] fix unbalance brace in mipssim get_c0_compare_int()
  2009-07-08  6:08 [PATCH[MIPS] fix unbalance brace in mipssim get_c0_compare_int() Yoichi Yuasa
@ 2009-07-08 15:24 ` Ralf Baechle
  0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2009-07-08 15:24 UTC (permalink / raw)
  To: Yoichi Yuasa; +Cc: linux-mips

On Wed, Jul 08, 2009 at 03:08:19PM +0900, Yoichi Yuasa wrote:

Thanks, applied.

  Ralf

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-07-08 15:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-08  6:08 [PATCH[MIPS] fix unbalance brace in mipssim get_c0_compare_int() Yoichi Yuasa
2009-07-08 15:24 ` Ralf Baechle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).