]> git.baikalelectronics.ru Git - kernel.git/commit
connector - documentation: simplify netlink message length assignment
authorMathias Krause <minipli@googlemail.com>
Mon, 30 Sep 2013 20:03:09 +0000 (22:03 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Oct 2013 20:03:51 +0000 (16:03 -0400)
commit6099406a5080c7c52ea302036632fcb437e116ba
tree0e71721ce729c4a74b821d9f4ab284763e3c189d
parent80e5fe5f26ed20c524a8d020f04aef0cfe3c7117
connector - documentation: simplify netlink message length assignment

Use the precalculated size instead of obfuscating the message length
calculation by first subtracting the netlink header length from size
and then use the NLMSG_LENGTH() macro to add it back again.

Signed-off-by: Mathias Krause <minipli@googlemail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/connector/ucon.c