Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: ethernet: use ip_hdrlen() instead of bit shift
[ Upstream commit 9a039ee ] `ip_hdr(skb)->ihl << 2` is the same as `ip_hdrlen(skb)` Therefore, we should use a well-defined function not a bit shift to find the header length. It also compresses two lines to a single line. Signed-off-by: Moon Yeounsu <[email protected]> Reviewed-by: Christophe JAILLET <[email protected]> Signed-off-by: David S. Miller <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
- Loading branch information