]> git.baikalelectronics.ru Git - kernel.git/commit
net: Pass NULL to skb_network_protocol() when we don't care about vlan depth
authorMiaohe Lin <linmiaohe@huawei.com>
Sat, 1 Aug 2020 09:36:05 +0000 (17:36 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Aug 2020 22:38:31 +0000 (15:38 -0700)
commit2ddb312ca16c647e1bd8a0aca451f0efcf7bdba2
tree3adc7329dd5c1d2b3f6f21c77dc092d6bb693e6c
parente68f18007af9ac8718d8a3d2305fa6e5967c4ab3
net: Pass NULL to skb_network_protocol() when we don't care about vlan depth

When we don't care about vlan depth, we could pass NULL instead of the
address of a unused local variable to skb_network_protocol() as a param.

Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/skbuff.c