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 <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
Tomasz Bursztyka 2018-06-11 09:14:56 +02:00 committed by Anas Nashif
parent 9e0cfaf0a7
commit 06fbcb1cd0

View File

@ -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);