Skip to content
Commit 0c1c939d authored by Robert Lubos's avatar Robert Lubos Committed by Fabio Baltieri
Browse files

net: ipv6: Remove invalid/unneeded code from fragmentation logic



Skipping both next_hdr_off and last_hdr_off and filling last_hdr
variable doesn't make much sense, as this effectively moves the packet
cursor inside/behind the last (L4) header with no particular meaning.
Plus the last_hdr variable isn't really used anywhere, which kind of
proves the point. Therefore, remove the unused variable and needless
net_pkt operations.

Signed-off-by: default avatarRobert Lubos <robert.lubos@nordicsemi.no>
parent 13a22e68
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment