Commit f97f3057 authored by Alan Cox's avatar Alan Cox Committed by David S. Miller

depca: Fix warnings

Replace the rather weird use of ++ with + 1 as the value is being assigned
Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
parent 2ba5e1fe
...@@ -1094,7 +1094,7 @@ static int depca_rx(struct net_device *dev) ...@@ -1094,7 +1094,7 @@ static int depca_rx(struct net_device *dev)
} }
} }
/* Change buffer ownership for this last frame, back to the adapter */ /* Change buffer ownership for this last frame, back to the adapter */
for (; lp->rx_old != entry; lp->rx_old = (++lp->rx_old) & lp->rxRingMask) { for (; lp->rx_old != entry; lp->rx_old = (lp->rx_old + 1) & lp->rxRingMask) {
writel(readl(&lp->rx_ring[lp->rx_old].base) | R_OWN, &lp->rx_ring[lp->rx_old].base); writel(readl(&lp->rx_ring[lp->rx_old].base) | R_OWN, &lp->rx_ring[lp->rx_old].base);
} }
writel(readl(&lp->rx_ring[entry].base) | R_OWN, &lp->rx_ring[entry].base); writel(readl(&lp->rx_ring[entry].base) | R_OWN, &lp->rx_ring[entry].base);
...@@ -1103,7 +1103,7 @@ static int depca_rx(struct net_device *dev) ...@@ -1103,7 +1103,7 @@ static int depca_rx(struct net_device *dev)
/* /*
** Update entry information ** Update entry information
*/ */
lp->rx_new = (++lp->rx_new) & lp->rxRingMask; lp->rx_new = (lp->rx_new + 1) & lp->rxRingMask;
} }
return 0; return 0;
...@@ -1148,7 +1148,7 @@ static int depca_tx(struct net_device *dev) ...@@ -1148,7 +1148,7 @@ static int depca_tx(struct net_device *dev)
} }
/* Update all the pointers */ /* Update all the pointers */
lp->tx_old = (++lp->tx_old) & lp->txRingMask; lp->tx_old = (lp->tx_old + 1) & lp->txRingMask;
} }
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment