neighbour: remove stray semicolon
Subsystems (3)
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]
--- net/core/neighbour.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/core/neighbour.c +1 -1
@@ -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
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")Signed-off-by Colin Ian King <[email protected]>
Thanks!.
Quoted 20 lines
--- net/core/neighbour.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)net/core/neighbour.c +1
-2@@ -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
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")Signed-off-by Colin Ian King <[email protected]>
Applied, thanks Colin.