summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2011-12-08 02:01:51 +0000
committerWolfgang Denk <wd@denx.de>2011-12-08 21:01:19 +0100
commitd82a27bc5c404da907f71960a3ed2e148ac73fd0 (patch)
treeb14899efcf8c19d7c201dd2c949df9d117039b97 /drivers
parentd3042862f65641222974908138647c46052313f3 (diff)
downloadblackbird-obmc-uboot-d82a27bc5c404da907f71960a3ed2e148ac73fd0.tar.gz
blackbird-obmc-uboot-d82a27bc5c404da907f71960a3ed2e148ac73fd0.zip
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: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/inca-ip_sw.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/net/inca-ip_sw.c b/drivers/net/inca-ip_sw.c
index bd3360cad7..c45389e0cd 100644
--- a/drivers/net/inca-ip_sw.c
+++ b/drivers/net/inca-ip_sw.c
@@ -291,9 +291,7 @@ static int inca_switch_init(struct eth_device *dev, bd_t * bis)
/* Initialize RxDMA.
*/
DMA_READ_REG(INCA_IP_DMA_DMA_RXISR, v);
-#if 0
- printf("RX status = 0x%08X\n", v);
-#endif
+ debug("RX status = 0x%08X\n", v);
/* Writing to the FRDA of CHANNEL.
*/
@@ -306,9 +304,7 @@ static int inca_switch_init(struct eth_device *dev, bd_t * bis)
/* Initialize TxDMA.
*/
DMA_READ_REG(INCA_IP_DMA_DMA_TXISR, v);
-#if 0
- printf("TX status = 0x%08X\n", v);
-#endif
+ debug("TX status = 0x%08X\n", v);
/* Writing to the FRDA of CHANNEL.
*/
OpenPOWER on IntegriCloud