]> 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>
Thu, 30 Jul 2020 11:02:36 +0000 (19:02 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 31 Jul 2020 23:42:30 +0000 (16:42 -0700)
commita3b39780e1ef7c884247d8e997b4a0b8cd9515f5
treecef4101839415ef7f884dc026097029d713ee6e3
parent0f834a3f27e8c2fe1863e252d4d7f6e6ba4e5b54
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/dev.c