Skip to contentSkip to conversation

ss: Remove unused argument from kill_inet_sock

PATCH New Subash Abhinov Kasiviswanathan 1 participant 1 message May 9, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ss: Remove unused argument from kill_inet_sock

addr is not used here.

---
 misc/ss.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
misc/ss.c +2 -3
index deefc96..5cda728 100644
@@ -2232,8 +2232,7 @@ struct inet_diag_arg {
 	struct rtnl_handle *rth;
 };
 
-static int kill_inet_sock(const struct sockaddr_nl *addr,
-		struct nlmsghdr *h, void *arg)
+static int kill_inet_sock(struct nlmsghdr *h, void *arg)
 {
 	struct inet_diag_msg *d = NLMSG_DATA(h);
 	struct inet_diag_arg *diag_arg = arg;
@@ -2260,7 +2259,7 @@ static int show_one_inet_sock(const struct sockaddr_nl *addr,
 
 	if (!(diag_arg->f->families & (1 << r->idiag_family)))
 		return 0;
-	if (diag_arg->f->kill && kill_inet_sock(addr, h, arg) != 0) {
+	if (diag_arg->f->kill && kill_inet_sock(h, arg) != 0) {
 		if (errno == EOPNOTSUPP || errno == ENOENT) {
 			/* Socket can't be closed, or is already closed. */
 			return 0;
Signature · 1 line
1.8.2.1