net: ipv6_fragment: Remove extra net_pkt_cursor_init() call
The net_pkt_pull() will reset the cursor after its call so no need to call it here. Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
8160385b57
commit
1fea82c125
@ -304,8 +304,6 @@ static void reassemble_packet(struct net_ipv6_reassembly *reass)
|
||||
goto error;
|
||||
}
|
||||
|
||||
net_pkt_cursor_init(pkt);
|
||||
|
||||
/* This one updates the previous header's nexthdr value */
|
||||
if (net_pkt_skip(pkt, net_pkt_ipv6_hdr_prev(pkt)) ||
|
||||
net_pkt_write_u8(pkt, next_hdr)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user