net:dev: Change napi_gro_complete return type to void
authorGyumin Hwang <hkm73560@gmail.com>
Sat, 2 Oct 2021 08:11:36 +0000 (08:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Oct 2021 13:08:14 +0000 (14:08 +0100)
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>
net/core/dev.c

index fa989ab63f29cbd97fea8f959d5a59a9119d0353..16ab09b6a7f83cbc18a4c63e9948c1c41357eb43 100644 (file)
@@ -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,