OSDN Git Service

neighbour: remove stray semicolon
authorColin Ian King <colin.king@canonical.com>
Thu, 20 Dec 2018 16:50:50 +0000 (16:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Dec 2018 00:36:28 +0000 (16:36 -0800)
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>
net/core/neighbour.c

index fa384f7..763a7b0 100644 (file)
@@ -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 */
 }