diff options
author | Phil Sutter | 2017-07-27 16:56:39 +0200 |
---|---|---|
committer | Pablo Neira Ayuso | 2017-07-31 19:14:05 +0200 |
commit | 6e692678d74289d6129bbd4bb20bb9fe01278faa (patch) | |
tree | d333471bd44be2d8b03d77b0aaa8fc0c3e3d459c /Documentation/process/howto.rst | |
parent | netfilter: nf_hook_ops structs can be const (diff) | |
download | kernel-qcow2-linux-6e692678d74289d6129bbd4bb20bb9fe01278faa.tar.gz kernel-qcow2-linux-6e692678d74289d6129bbd4bb20bb9fe01278faa.tar.xz kernel-qcow2-linux-6e692678d74289d6129bbd4bb20bb9fe01278faa.zip |
netfilter: nf_tables: No need to check chain existence when tracing
nft_trace_notify() is called only from __nft_trace_packet(), which
assigns its parameter 'chain' to info->chain. __nft_trace_packet() in
turn later dereferences 'chain' unconditionally, which indicates that
it's never NULL. Same does nft_do_chain(), the only user of the tracing
infrastructure. Hence it is safe to assume the check removed here is not
needed.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'Documentation/process/howto.rst')
0 files changed, 0 insertions, 0 deletions