carl9170 firmware: remove firmware context memset
[carl9170fw.git] / carlfw / src / main.c
index f62e5ee7b6ce612a1c786ebf4a049fe990e76c53..3efa6a8fe5383939e3000c7c036b4739d66a1a59 100644 (file)
@@ -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 */