Move update of the transmit statistics to the correct place.

Signed-off-by: Roger While <[EMAIL PROTECTED]>
diff -Naur linux-2.6.14orig/drivers/net/wireless/prism54/islpci_eth.c linux-2.6.14/drivers/net/wireless/prism54/islpci_eth.c
--- linux-2.6.14orig/drivers/net/wireless/prism54/islpci_eth.c	2005-11-07 15:43:45.000000000 +0100
+++ linux-2.6.14/drivers/net/wireless/prism54/islpci_eth.c	2005-11-07 16:05:28.000000000 +0100
@@ -227,17 +227,17 @@
 		priv->data_low_tx_full = 1;
 	}
 
+	/* set the transmission time */
+	ndev->trans_start = jiffies;
+	priv->statistics.tx_packets++;
+	priv->statistics.tx_bytes += skb->len;
+
 	/* trigger the device */
 	islpci_trigger(priv);
 
 	/* unlock the driver code */
 	spin_unlock_irqrestore(&priv->slock, flags);
 
-	/* set the transmission time */
-	ndev->trans_start = jiffies;
-	priv->statistics.tx_packets++;
-	priv->statistics.tx_bytes += skb->len;
-
 	return 0;
 
       drop_free:

Reply via email to