Subject: Re: [RFC] updated Patch to option HSO driver to the kernel

From: Paulius Zaleckas <[email-masked]>
Date: Fri, 25 Apr 2008 16:19:11 +0300

Incremental patch.
- simplify net stats even more
--- linux-2.6-hso-my/drivers/net/usb/hso.c.orig	2008-04-25 15:12:48.000000000 +0300
+++ linux-2.6-hso-my/drivers/net/usb/hso.c	2008-04-25 16:13:41.000000000 +0300
@@ -796,11 +796,11 @@ static int hso_net_start_xmit(struct sk_
 	if (result) {
 		dev_warn(&odev->parent->interface->dev,
 			"failed mux_bulk_tx_urb %d", result);
-		odev->net->stats.tx_errors++;
+		net->stats.tx_errors++;
 		netif_start_queue(net);
 	} else {
-		odev->net->stats.tx_packets++;
-		odev->net->stats.tx_bytes += skb->len;
+		net->stats.tx_packets++;
+		net->stats.tx_bytes += skb->len;
 		/* And tell the kernel when the last transmit started. */
 		net->trans_start = jiffies;
 	}
@@ -840,7 +840,7 @@ static void hso_net_tx_timeout(struct ne
 		usb_unlink_urb(odev->mux_bulk_tx_urb);
 
 	/* Update statistics */
-	odev->net->stats.tx_errors++;
+	net->stats.tx_errors++;
 }
 
 /* make a real packet from the received USB buffer */