diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-12-20 19:50:50 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-12-21 03:36:28 +0300 |
commit | 463561e6b9facf93ef90b65d2c75a80c7262d778 (patch) | |
tree | 9113a82f03a39f572b3baa3c9246ade47d0399a7 /net/core | |
parent | 962ad710f7d64d441c4e02c0e9e5fddd1aeb54b7 (diff) | |
download | linux-463561e6b9facf93ef90b65d2c75a80c7262d778.tar.xz |
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.c | 2 |
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 */ } |