diff options
| author | Moon Yeounsu <yyyynoom@gmail.com> | 2024-08-07 19:07:21 +0900 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-11-08 16:20:24 +0100 |
| commit | ef2c4556a392174b5a3a9d3608ef9b499c2c20d0 (patch) | |
| tree | 404418717625627569df9abeda8cf6f4fb68b5b9 /drivers/net/phy | |
| parent | 11f5645c619419360797c601101e7e5366732d10 (diff) | |
| download | linux-ef2c4556a392174b5a3a9d3608ef9b499c2c20d0.tar.gz linux-ef2c4556a392174b5a3a9d3608ef9b499c2c20d0.tar.bz2 linux-ef2c4556a392174b5a3a9d3608ef9b499c2c20d0.zip | |
net: ethernet: use ip_hdrlen() instead of bit shift
[ Upstream commit 9a039eeb71a42c8b13408a1976e300f3898e1be0 ]
`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 <yyyynoom@gmail.com>
Reviewed-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/net/phy')
0 files changed, 0 insertions, 0 deletions
