diff options
author | Gyumin Hwang <hkm73560@gmail.com> | 2021-10-02 11:11:36 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-10-02 16:08:14 +0300 |
commit | 1643771eeb2db9b487cbbde12e2a3f6ed0171490 (patch) | |
tree | 3450d0b40fc17621a911d01a1bdc2123d6f34675 /net | |
parent | 8b67a2111bb82847e59e127508c7e35b2bbf6ea8 (diff) | |
download | linux-1643771eeb2db9b487cbbde12e2a3f6ed0171490.tar.xz |
net:dev: Change napi_gro_complete return type to void
napi_gro_complete always returned the same value, NET_RX_SUCCESS
And the value was not used anywhere
Signed-off-by: Gyumin Hwang <hkm73560@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/core/dev.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index fa989ab63f29..16ab09b6a7f8 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -5839,7 +5839,7 @@ static void gro_normal_one(struct napi_struct *napi, struct sk_buff *skb, int se gro_normal_list(napi); } -static int napi_gro_complete(struct napi_struct *napi, struct sk_buff *skb) +static void napi_gro_complete(struct napi_struct *napi, struct sk_buff *skb) { struct packet_offload *ptype; __be16 type = skb->protocol; @@ -5868,12 +5868,11 @@ static int napi_gro_complete(struct napi_struct *napi, struct sk_buff *skb) if (err) { WARN_ON(&ptype->list == head); kfree_skb(skb); - return NET_RX_SUCCESS; + return; } out: gro_normal_one(napi, skb, NAPI_GRO_CB(skb)->count); - return NET_RX_SUCCESS; } static void __napi_gro_flush_chain(struct napi_struct *napi, u32 index, |