提交 d82a27bc 编写于 作者: W Wolfgang Denk

drivers/net/inca-ip_sw.c: Fix GCC 4.6 build warning

Fix:
inca-ip_sw.c: In function 'inca_switch_init':
inca-ip_sw.c:210:6: warning: variable 'v' set but not used
[-Wunused-but-set-variable]
Signed-off-by: NWolfgang Denk <wd@denx.de>
上级 d3042862
...@@ -291,9 +291,7 @@ static int inca_switch_init(struct eth_device *dev, bd_t * bis) ...@@ -291,9 +291,7 @@ static int inca_switch_init(struct eth_device *dev, bd_t * bis)
/* Initialize RxDMA. /* Initialize RxDMA.
*/ */
DMA_READ_REG(INCA_IP_DMA_DMA_RXISR, v); DMA_READ_REG(INCA_IP_DMA_DMA_RXISR, v);
#if 0 debug("RX status = 0x%08X\n", v);
printf("RX status = 0x%08X\n", v);
#endif
/* Writing to the FRDA of CHANNEL. /* Writing to the FRDA of CHANNEL.
*/ */
...@@ -306,9 +304,7 @@ static int inca_switch_init(struct eth_device *dev, bd_t * bis) ...@@ -306,9 +304,7 @@ static int inca_switch_init(struct eth_device *dev, bd_t * bis)
/* Initialize TxDMA. /* Initialize TxDMA.
*/ */
DMA_READ_REG(INCA_IP_DMA_DMA_TXISR, v); DMA_READ_REG(INCA_IP_DMA_DMA_TXISR, v);
#if 0 debug("TX status = 0x%08X\n", v);
printf("TX status = 0x%08X\n", v);
#endif
/* Writing to the FRDA of CHANNEL. /* Writing to the FRDA of CHANNEL.
*/ */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册