From: Christian Lamparter Date: Fri, 23 Dec 2011 00:12:53 +0000 (+0100) Subject: carl9170 firmware: remove gcc workaround X-Git-Tag: 1.9.5~11 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=2e151987af82a9a2bc3e8680d99861d2c5ba3873;p=carl9170fw.git carl9170 firmware: remove gcc workaround this workaround is no longer necessary, gcc now compiles the code without any spurious complains. Signed-off-by: Christian Lamparter --- diff --git a/carlfw/src/dma.c b/carlfw/src/dma.c index c33608c..7c077af 100644 --- a/carlfw/src/dma.c +++ b/carlfw/src/dma.c @@ -84,14 +84,8 @@ void dma_init_descriptors(void) fw.wlan.fw_desc = &dma_mem.terminator[i++]; #ifdef CONFIG_CARL9170FW_CAB_QUEUE - /* GCC bug ? */ -# if (CARL9170_INTF_NUM != 2) for (j = 0; j < CARL9170_INTF_NUM; j++) fw.wlan.cab_queue[j].head = fw.wlan.cab_queue[j].terminator = &dma_mem.terminator[i++]; -#else - fw.wlan.cab_queue[0].head = fw.wlan.cab_queue[0].terminator = &dma_mem.terminator[i++]; - fw.wlan.cab_queue[1].head = fw.wlan.cab_queue[1].terminator = &dma_mem.terminator[i++]; -#endif #endif /* CONFIG_CARL9170FW_CAB_QUEUE */ BUILD_BUG_ON(AR9170_TERMINATOR_NUMBER != j);