From: Oleksij Rempel Date: Sun, 17 Mar 2013 19:03:47 +0000 (+0100) Subject: build fix: magpie..init.c remove unused variables X-Git-Tag: 1.3.2~12^2~25 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=9a198ba2e38442e76e7054fc36f72d437e763056;p=open-ath9k-htc-firmware.git build fix: magpie..init.c remove unused variables Signed-off-by: Oleksij Rempel --- diff --git a/target_firmware/magpie_fw_dev/target/init/init.c b/target_firmware/magpie_fw_dev/target/init/init.c index 0e6efaa..b32661e 100755 --- a/target_firmware/magpie_fw_dev/target/init/init.c +++ b/target_firmware/magpie_fw_dev/target/init/init.c @@ -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));