Commit 463561e6 authored by Colin Ian King's avatar Colin Ian King Committed by David S. Miller

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: 82cbb5c6 ("neighbour: register rtnl doit handler")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Acked-By: default avatarRoopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 962ad710
...@@ -2811,7 +2811,7 @@ static int neigh_get_reply(struct net *net, struct neighbour *neigh, ...@@ -2811,7 +2811,7 @@ static int neigh_get_reply(struct net *net, struct neighbour *neigh,
static inline size_t pneigh_nlmsg_size(void) static inline size_t pneigh_nlmsg_size(void)
{ {
return NLMSG_ALIGN(sizeof(struct ndmsg)) 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 */ + nla_total_size(1); /* NDA_PROTOCOL */
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment