From 06fbcb1cd00ddaeedc7aaac8f5076b24aff95f87 Mon Sep 17 00:00:00 2001 From: Tomasz Bursztyka Date: Mon, 11 Jun 2018 09:14:56 +0200 Subject: [PATCH] net/arp: Removing header filling duplicate Header is filled in either in prepare_arp() or at the end of the function. Signed-off-by: Tomasz Bursztyka --- subsys/net/ip/l2/ethernet/arp.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/subsys/net/ip/l2/ethernet/arp.c b/subsys/net/ip/l2/ethernet/arp.c index 1480e1ec6c3..3829ddef1ec 100644 --- a/subsys/net/ip/l2/ethernet/arp.c +++ b/subsys/net/ip/l2/ethernet/arp.c @@ -221,10 +221,6 @@ struct net_pkt *net_arp_prepare(struct net_pkt *pkt) return NULL; } - net_eth_fill_header(ctx, pkt, header, htons(NET_ETH_PTYPE_IP), - net_pkt_ll_src(pkt)->addr, - net_pkt_ll_dst(pkt)->addr); - net_pkt_frag_insert(pkt, header); net_pkt_compact(pkt);