Skip to contentSkip to conversation

neighbour: remove stray semicolon

PATCH Applied Colin King 3 participants 3 messages Dec 20, 2018 – Dec 21, 2018

Subsystems (3)
lore
Share & tools
lore

Colin King

author
#0 lore raw

PATCH 1/1 neighbour: remove stray semicolon

From: Colin Ian King <[email protected]>

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")
---
 net/core/neighbour.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/core/neighbour.c +1 -1
index 43687c9abe1d..1c4b7814ac32 100644
@@ -2817,7 +2817,7 @@ static int neigh_get_reply(struct net *net, struct neighbour *neigh,
 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 */
 }
 
Signature · 1 line
2.19.1
Acked-by on v1 1/1
#1 lore raw
Quoted 10 lines · Colin King

From: Colin Ian King <[email protected]>

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")

Thanks!.

Quoted 20 lines
---
 net/core/neighbour.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/core/neighbour.c +1 -2
index 43687c9abe1d..1c4b7814ac32 100644
@@ -2817,7 +2817,7 @@ static int neigh_get_reply(struct net *net, struct neighbour *neigh,
 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 */
 }
 
--

2.19.1

maintainer Applied
#2 lore raw
In reply to Colin King

From: Colin King <[email protected]>
Date: Thu, 20 Dec 2018 16:50:50 +0000

Quoted 9 lines

From: Colin Ian King <[email protected]>

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")

Applied, thanks Colin.