summaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-12-20 16:50:50 +0000
committerDavid S. Miller <davem@davemloft.net>2018-12-20 16:36:28 -0800
commit463561e6b9facf93ef90b65d2c75a80c7262d778 (patch)
tree9113a82f03a39f572b3baa3c9246ade47d0399a7 /net/core
parent962ad710f7d64d441c4e02c0e9e5fddd1aeb54b7 (diff)
downloadlinux-463561e6b9facf93ef90b65d2c75a80c7262d778.tar.bz2
neighbour: remove stray semicolon
Currently the stray semicolon means that the final term in the addition is being missed. Fix this by removing it. Cleans up clang warning: net/core/neighbour.c:2821:9: warning: expression result unused [-Wunused-value] Fixes: 82cbb5c631a0 ("neighbour: register rtnl doit handler") Signed-off-by: Colin Ian King <colin.king@canonical.com> Acked-By: Roopa Prabhu <roopa@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/neighbour.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/neighbour.c b/net/core/neighbour.c
index fa384f775f1a..763a7b08df67 100644
--- a/net/core/neighbour.c
+++ b/net/core/neighbour.c
@@ -2811,7 +2811,7 @@ errout:
static inline size_t pneigh_nlmsg_size(void)
{
return NLMSG_ALIGN(sizeof(struct ndmsg))
- + nla_total_size(MAX_ADDR_LEN); /* NDA_DST */
+ + nla_total_size(MAX_ADDR_LEN) /* NDA_DST */
+ nla_total_size(1); /* NDA_PROTOCOL */
}