aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter
diff options
context:
space:
mode:
authorAsbjørn Sloth Tønnesen <asbjorn@asbjorn.st>2016-11-07 20:39:27 +0000
committerDavid S. Miller <davem@davemloft.net>2016-11-09 18:55:36 -0500
commit57ceb8611d85b7ee28c402383ba3fe8db4a083f0 (patch)
tree2f57aa13c0781c28e574e539eb0757eb23b3978d /net/netfilter
parentnet: l2tp: netlink: l2tp_nl_tunnel_send: set UDP6 checksum flags (diff)
downloadlinux-dev-57ceb8611d85b7ee28c402383ba3fe8db4a083f0.tar.xz
linux-dev-57ceb8611d85b7ee28c402383ba3fe8db4a083f0.zip
net: l2tp: cleanup: remove redundant condition
These assignments follow this pattern: unsigned int foo:1; struct nlattr *nla = info->attrs[bar]; if (nla) foo = nla_get_flag(nla); /* expands to: foo = !!nla */ This could be simplified to: if (nla) foo = 1; but lets just remove the condition and use the macro, foo = nla_get_flag(nla); Signed-off-by: Asbjoern Sloth Toennesen <asbjorn@asbjorn.st> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netfilter')
0 files changed, 0 insertions, 0 deletions