diff options
Diffstat (limited to 'drivers/net/usb')
-rw-r--r-- | drivers/net/usb/hso.c | 2 | ||||
-rw-r--r-- | drivers/net/usb/kaweth.c | 1 | ||||
-rw-r--r-- | drivers/net/usb/pegasus.c | 3 |
3 files changed, 1 insertions, 5 deletions
diff --git a/drivers/net/usb/hso.c b/drivers/net/usb/hso.c index be0cc99e881a..a6227f892d1b 100644 --- a/drivers/net/usb/hso.c +++ b/drivers/net/usb/hso.c | |||
@@ -834,8 +834,6 @@ static netdev_tx_t hso_net_start_xmit(struct sk_buff *skb, | |||
834 | } else { | 834 | } else { |
835 | net->stats.tx_packets++; | 835 | net->stats.tx_packets++; |
836 | net->stats.tx_bytes += skb->len; | 836 | net->stats.tx_bytes += skb->len; |
837 | /* And tell the kernel when the last transmit started. */ | ||
838 | net->trans_start = jiffies; | ||
839 | } | 837 | } |
840 | dev_kfree_skb(skb); | 838 | dev_kfree_skb(skb); |
841 | /* we're done */ | 839 | /* we're done */ |
diff --git a/drivers/net/usb/kaweth.c b/drivers/net/usb/kaweth.c index c4c334d9770f..46890dc625dc 100644 --- a/drivers/net/usb/kaweth.c +++ b/drivers/net/usb/kaweth.c | |||
@@ -856,7 +856,6 @@ skip: | |||
856 | { | 856 | { |
857 | kaweth->stats.tx_packets++; | 857 | kaweth->stats.tx_packets++; |
858 | kaweth->stats.tx_bytes += skb->len; | 858 | kaweth->stats.tx_bytes += skb->len; |
859 | net->trans_start = jiffies; | ||
860 | } | 859 | } |
861 | 860 | ||
862 | spin_unlock_irq(&kaweth->device_lock); | 861 | spin_unlock_irq(&kaweth->device_lock); |
diff --git a/drivers/net/usb/pegasus.c b/drivers/net/usb/pegasus.c index 41838773b568..1cd17d274a12 100644 --- a/drivers/net/usb/pegasus.c +++ b/drivers/net/usb/pegasus.c | |||
@@ -808,7 +808,7 @@ static void write_bulk_callback(struct urb *urb) | |||
808 | break; | 808 | break; |
809 | } | 809 | } |
810 | 810 | ||
811 | net->trans_start = jiffies; | 811 | net->trans_start = jiffies; /* prevent tx timeout */ |
812 | netif_wake_queue(net); | 812 | netif_wake_queue(net); |
813 | } | 813 | } |
814 | 814 | ||
@@ -909,7 +909,6 @@ static netdev_tx_t pegasus_start_xmit(struct sk_buff *skb, | |||
909 | } else { | 909 | } else { |
910 | pegasus->stats.tx_packets++; | 910 | pegasus->stats.tx_packets++; |
911 | pegasus->stats.tx_bytes += skb->len; | 911 | pegasus->stats.tx_bytes += skb->len; |
912 | net->trans_start = jiffies; | ||
913 | } | 912 | } |
914 | dev_kfree_skb(skb); | 913 | dev_kfree_skb(skb); |
915 | 914 | ||