]> git.baikalelectronics.ru Git - kernel.git/commit
netlink: simplify NLMSG_DATA with NLMSG_HDRLEN
authorChen Li <chenli@uniontech.com>
Mon, 7 Jun 2021 01:44:35 +0000 (09:44 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Jun 2021 19:51:33 +0000 (12:51 -0700)
commit78eae30aab7a058aa1f1dafc0d25ba1a928c2eef
treed06d6c55ba7cc6a535ef46bf209c1d0bba419c37
parent079b3a595713bad5b80af1501dd12446408efacd
netlink: simplify NLMSG_DATA with NLMSG_HDRLEN

The NLMSG_LENGTH(0) may confuse the API users,
NLMSG_HDRLEN is much more clear.

Besides, some code style problems are also fixed.
Signed-off-by: Chen Li <chenli@uniontech.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/netlink.h