Skip to content

Commit 586616c

Browse files
mstarovodavem330
authored andcommitted
net: atlantic: fix typo in aq_ring_tx_clean
This patch fixes a typo in aq_ring_tx_clean. stats is a union, so the typo doesn't cause any issues, but it's a typo nonetheless. Signed-off-by: Mark Starovoytov <[email protected]> Signed-off-by: Igor Russkikh <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent ab3518a commit 586616c

File tree

1 file changed

+5
-4
lines changed
  • drivers/net/ethernet/aquantia/atlantic

1 file changed

+5
-4
lines changed

drivers/net/ethernet/aquantia/atlantic/aq_ring.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// SPDX-License-Identifier: GPL-2.0-only
2-
/*
3-
* aQuantia Corporation Network Driver
4-
* Copyright (C) 2014-2019 aQuantia Corporation. All rights reserved
2+
/* Atlantic Network Driver
3+
*
4+
* Copyright (C) 2014-2019 aQuantia Corporation
5+
* Copyright (C) 2019-2020 Marvell International Ltd.
56
*/
67

78
/* File aq_ring.c: Definition of functions for Rx/Tx rings. */
@@ -279,7 +280,7 @@ bool aq_ring_tx_clean(struct aq_ring_s *self)
279280
}
280281

281282
if (unlikely(buff->is_eop)) {
282-
++self->stats.rx.packets;
283+
++self->stats.tx.packets;
283284
self->stats.tx.bytes += buff->skb->len;
284285

285286
dev_kfree_skb_any(buff->skb);

0 commit comments

Comments
 (0)