From: Christian Lamparter Date: Thu, 16 Sep 2010 20:13:38 +0000 (+0200) Subject: carl9170 firmware: remove firmware context memset X-Git-Tag: 1.8.8.3~3 X-Git-Url: https://jxself.org/git/?p=carl9170fw.git;a=commitdiff_plain;h=9c398c9da04f501ebf207e8608f1a0e47801454a carl9170 firmware: remove firmware context memset There's no need to reinitialize the firmware context on boot. Signed-off-by: Christian Lamparter --- 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 */