From 9c398c9da04f501ebf207e8608f1a0e47801454a Mon Sep 17 00:00:00 2001 From: Christian Lamparter Date: Thu, 16 Sep 2010 22:13:38 +0200 Subject: [PATCH] carl9170 firmware: remove firmware context memset There's no need to reinitialize the firmware context on boot. Signed-off-by: Christian Lamparter --- carlfw/src/main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/carlfw/src/main.c b/carlfw/src/main.c index f62e5ee..3efa6a8 100644 --- a/carlfw/src/main.c +++ b/carlfw/src/main.c @@ -46,6 +46,7 @@ static void init(void) /* USB init */ usb_init(); + /* initialize DMA memory */ memset(&dma_mem, 0, sizeof(dma_mem)); /* fill DMA rings */ @@ -120,9 +121,6 @@ void __attribute__((noreturn)) start(void) { clock_set(true, AHB_40MHZ_OSC); - /* initialize firmware context and DMA memory */ - memset(&fw, 0, sizeof(fw)); - /* watchdog magic pattern check */ if ((get(AR9170_PWR_REG_WATCH_DOG_MAGIC) & 0xffff0000) == 0x12340000) { /* watch dog warm start */ -- 2.31.1