OSDN Git Service

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)
commitbc0435855041d7fff0b83dd992fc4be34aa11afb
tree5f017c2f4a49b9841d18cff23269d3b6e8c0b52c
parent8140860c817f3e9f78bcd1e420b9777ddcbaa629
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