]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit - lib/nlattr.c
netlink: make validation_data const
authorJohannes Berg <johannes.berg@intel.com>
Wed, 26 Sep 2018 09:15:31 +0000 (11:15 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Sep 2018 17:24:39 +0000 (10:24 -0700)
commit48fde90a78f8c67e2bec5061f9725fe363519feb
tree9a1c59ea9061b11a42fc02b9b8749404431e757b
parentfe3b30ddb90face841b2ede3b73ed2e9cfece6ba
netlink: make validation_data const

The validation data is only used within the policy that
should usually already be const, and isn't changed in any
code that uses it. Therefore, make the validation_data
pointer const.

While at it, remove the duplicate variable in the bitfield
validation that I'd otherwise have to change to const.

Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/netlink.h
lib/nlattr.c