Skip to content

Commit

Permalink
net: atlantic: fix typo in aq_ring_tx_clean
Browse files Browse the repository at this point in the history
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 <mstarovoitov@marvell.com>
Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
mstarovo authored and davem330 committed Jun 26, 2020
1 parent ab3518a commit 586616c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions drivers/net/ethernet/aquantia/atlantic/aq_ring.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* aQuantia Corporation Network Driver
* Copyright (C) 2014-2019 aQuantia Corporation. All rights reserved
/* Atlantic Network Driver
*
* Copyright (C) 2014-2019 aQuantia Corporation
* Copyright (C) 2019-2020 Marvell International Ltd.
*/

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

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

dev_kfree_skb_any(buff->skb);
Expand Down

0 comments on commit 586616c

Please sign in to comment.