[PATCH 06/31] build fix: magpie..init.c remove unused variables
Oleksij Rempel
linux at rempel-privat.de
Fri Mar 29 05:01:40 EDT 2013
Signed-off-by: Oleksij Rempel <linux at rempel-privat.de>
---
target_firmware/magpie_fw_dev/target/init/init.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/target_firmware/magpie_fw_dev/target/init/init.c b/target_firmware/magpie_fw_dev/target/init/init.c
index 922cf6a..9efb014 100755
--- a/target_firmware/magpie_fw_dev/target/init/init.c
+++ b/target_firmware/magpie_fw_dev/target/init/init.c
@@ -52,7 +52,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;
@@ -184,7 +184,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));
--
1.8.1.2
More information about the Ath9k_htc_fw
mailing list