Commit 1643771e authored by Gyumin Hwang's avatar Gyumin Hwang Committed by David S. Miller

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: default avatarGyumin Hwang <hkm73560@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8b67a211
...@@ -5839,7 +5839,7 @@ static void gro_normal_one(struct napi_struct *napi, struct sk_buff *skb, int se ...@@ -5839,7 +5839,7 @@ static void gro_normal_one(struct napi_struct *napi, struct sk_buff *skb, int se
gro_normal_list(napi); 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; struct packet_offload *ptype;
__be16 type = skb->protocol; __be16 type = skb->protocol;
...@@ -5868,12 +5868,11 @@ static int napi_gro_complete(struct napi_struct *napi, struct sk_buff *skb) ...@@ -5868,12 +5868,11 @@ static int napi_gro_complete(struct napi_struct *napi, struct sk_buff *skb)
if (err) { if (err) {
WARN_ON(&ptype->list == head); WARN_ON(&ptype->list == head);
kfree_skb(skb); kfree_skb(skb);
return NET_RX_SUCCESS; return;
} }
out: out:
gro_normal_one(napi, skb, NAPI_GRO_CB(skb)->count); 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, static void __napi_gro_flush_chain(struct napi_struct *napi, u32 index,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment