Commit 1fea82c1 authored by Jukka Rissanen's avatar Jukka Rissanen
Browse files

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: default avatarJukka Rissanen <jukka.rissanen@linux.intel.com>
parent 8160385b
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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)) {