projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
connector - documentation: simplify netlink message length assignment
[firefly-linux-kernel-4.4.55.git]
/
Documentation
/
connector
/
ucon.c
diff --git
a/Documentation/connector/ucon.c
b/Documentation/connector/ucon.c
index 4848db8c71ff5118244888b620251f49831c92f2..8a4da64e02a8b08f3ad7ed6359ef713d7afd3b54 100644
(file)
--- a/
Documentation/connector/ucon.c
+++ b/
Documentation/connector/ucon.c
@@
-71,7
+71,7
@@
static int netlink_send(int s, struct cn_msg *msg)
nlh->nlmsg_seq = seq++;
nlh->nlmsg_pid = getpid();
nlh->nlmsg_type = NLMSG_DONE;
- nlh->nlmsg_len =
NLMSG_LENGTH(size - sizeof(*nlh))
;
+ nlh->nlmsg_len =
size
;
nlh->nlmsg_flags = 0;
m = NLMSG_DATA(nlh);