]> 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)
commit47244be704f17ce9de767966b5ec68ba0e68e587
tree9a1c59ea9061b11a42fc02b9b8749404431e757b
parent671aed9c2ff195c982ed426892d5eec490a14745
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