]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
8139too: remove unnecessary cast of ioread32()'s return value
authorJunchang Wang <junchangwang@gmail.com>
Sun, 30 May 2010 02:22:14 +0000 (02:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 31 May 2010 07:27:48 +0000 (00:27 -0700)
ioread32() returns a 32-bit integer on all platforms.
There is no need to cast its return value.

Signed-off-by: Junchang Wang <junchangwang@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/8139too.c

index 4ba72933f0da57b72f069e4d95a29fc1ad8da1f1..cc7d46238801867b8ee5a16b4811b4eb9ca663b2 100644 (file)
@@ -662,7 +662,7 @@ static const struct ethtool_ops rtl8139_ethtool_ops;
 /* read MMIO register */
 #define RTL_R8(reg)            ioread8 (ioaddr + (reg))
 #define RTL_R16(reg)           ioread16 (ioaddr + (reg))
-#define RTL_R32(reg)           ((unsigned long) ioread32 (ioaddr + (reg)))
+#define RTL_R32(reg)           ioread32 (ioaddr + (reg))
 
 
 static const u16 rtl8139_intr_mask =
@@ -861,7 +861,7 @@ retry:
 
        /* if unknown chip, assume array element #0, original RTL-8139 in this case */
        dev_dbg(&pdev->dev, "unknown chip version, assuming RTL-8139\n");
-       dev_dbg(&pdev->dev, "TxConfig = 0x%lx\n", RTL_R32 (TxConfig));
+       dev_dbg(&pdev->dev, "TxConfig = 0x%x\n", RTL_R32 (TxConfig));
        tp->chipset = 0;
 
 match:
@@ -1642,7 +1642,7 @@ static void rtl8139_tx_timeout_task (struct work_struct *work)
        netdev_dbg(dev, "Tx queue start entry %ld  dirty entry %ld\n",
                   tp->cur_tx, tp->dirty_tx);
        for (i = 0; i < NUM_TX_DESC; i++)
-               netdev_dbg(dev, "Tx descriptor %d is %08lx%s\n",
+               netdev_dbg(dev, "Tx descriptor %d is %08x%s\n",
                           i, RTL_R32(TxStatus0 + (i * 4)),
                           i == tp->dirty_tx % NUM_TX_DESC ?
                           " (queue head)" : "");
@@ -2486,7 +2486,7 @@ static void __set_rx_mode (struct net_device *dev)
        int rx_mode;
        u32 tmp;
 
-       netdev_dbg(dev, "rtl8139_set_rx_mode(%04x) done -- Rx config %08lx\n",
+       netdev_dbg(dev, "rtl8139_set_rx_mode(%04x) done -- Rx config %08x\n",
                   dev->flags, RTL_R32(RxConfig));
 
        /* Note: do not reorder, GCC is clever about common statements. */