]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit69dc7b549e4dbdbed8320aedb6ce2f79acf30b0f
tree9a1c59ea9061b11a42fc02b9b8749404431e757b
parenta5ee2daf2ff6a411b23c312132c19ea8ec579180
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