]> git.karo-electronics.de Git - linux-beck.git/commit
netfilter: nf_tables_netdev: remove redundant ip_hdr assignment
authorLiping Zhang <liping.zhang@spreadtrum.com>
Sun, 28 Aug 2016 08:59:52 +0000 (16:59 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 30 Aug 2016 09:41:04 +0000 (11:41 +0200)
commitc73c2484901139c28383b58eabcbf4d613e91518
treea2c4370d711776cc2f3ec6342e3248399a5355d8
parent4249fc1f023a2106170bbf715e2e1a0ebc2d5b1f
netfilter: nf_tables_netdev: remove redundant ip_hdr assignment

We have already use skb_header_pointer to get the ip header pointer,
so there's no need to use ip_hdr again. Moreover, in NETDEV INGRESS
hook, ip header maybe not linear, so use ip_hdr is not appropriate,
remove it.

Signed-off-by: Liping Zhang <liping.zhang@spreadtrum.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_netdev.c