]> git.baikalelectronics.ru Git - kernel.git/commit
netlink: consistently use NLA_POLICY_MIN_LEN()
authorJohannes Berg <johannes.berg@intel.com>
Tue, 18 Aug 2020 08:17:32 +0000 (10:17 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Aug 2020 19:28:45 +0000 (12:28 -0700)
commita5f393496a50034265e7e8375f920ef12e25e15d
tree5f017c2f4a49b9841d18cff23269d3b6e8c0b52c
parent7b2e4f4350ac93aa2cc27d9db9ef32276cd4093d
netlink: consistently use NLA_POLICY_MIN_LEN()

Change places that open-code NLA_POLICY_MIN_LEN() to
use the macro instead, giving us flexibility in how we
handle the details of the macro.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macsec.c
drivers/net/wireguard/netlink.c
net/wireless/nl80211.c