build fix: magpie..init.c remove unused variables
authorOleksij Rempel <linux@rempel-privat.de>
Sun, 17 Mar 2013 19:03:47 +0000 (20:03 +0100)
committerOleksij Rempel <linux@rempel-privat.de>
Sat, 30 Mar 2013 16:27:45 +0000 (17:27 +0100)
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
target_firmware/magpie_fw_dev/target/init/init.c

index 0e6efaaa013b57161fe63b53a1871356ae096a91..b32661e96df22995d79a8ec6d4caf6d7abed9c33 100755 (executable)
@@ -86,7 +86,7 @@ void fatal_exception_func()
 void
 change_magpie_clk(void)
 {
-       volatile uint32_t i=0, rd_data;
+       volatile uint32_t rd_data;
 
        HAL_WORD_REG_WRITE(0x00056004, 0x11);
        rd_data = HAL_WORD_REG_READ(0x00056004) & 0x1;
@@ -218,7 +218,6 @@ void
 AR6002_fatal_exception_handler_patch(CPU_exception_frame_t *exc_frame)
 {
        struct register_dump_s dump;
-       void (*reset_func)(void) = (void*)(RESET_VECTOR_ADDRESS);
        uint32_t  exc_cause, exc_vaddr;
        asm volatile("rsr %0,%1" : "=r" (exc_cause) : "n" (EXCCAUSE));
        asm volatile("rsr %0,%1" : "=r" (exc_vaddr) : "n" (EXCVADDR));