We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 559847f commit f3009d0Copy full SHA for f3009d0
net/atm/lec.c
@@ -181,6 +181,7 @@ static void
181
lec_send(struct atm_vcc *vcc, struct sk_buff *skb)
182
{
183
struct net_device *dev = skb->dev;
184
+ unsigned int len = skb->len;
185
186
ATM_SKB(skb)->vcc = vcc;
187
atm_account_tx(vcc, skb);
@@ -191,7 +192,7 @@ lec_send(struct atm_vcc *vcc, struct sk_buff *skb)
191
192
}
193
194
dev->stats.tx_packets++;
- dev->stats.tx_bytes += skb->len;
195
+ dev->stats.tx_bytes += len;
196
197
198
static void lec_tx_timeout(struct net_device *dev, unsigned int txqueue)
0 commit comments