Commit b38e7409 authored by subashab@codeaurora.org's avatar subashab@codeaurora.org Committed by Stephen Hemminger

ss: Remove unused argument from kill_inet_sock

addr is not used here.
Signed-off-by: default avatarSubash Abhinov Kasiviswanathan <subashab@codeaurora.org>
parent 719c443b
...@@ -2232,8 +2232,7 @@ struct inet_diag_arg { ...@@ -2232,8 +2232,7 @@ struct inet_diag_arg {
struct rtnl_handle *rth; struct rtnl_handle *rth;
}; };
static int kill_inet_sock(const struct sockaddr_nl *addr, static int kill_inet_sock(struct nlmsghdr *h, void *arg)
struct nlmsghdr *h, void *arg)
{ {
struct inet_diag_msg *d = NLMSG_DATA(h); struct inet_diag_msg *d = NLMSG_DATA(h);
struct inet_diag_arg *diag_arg = arg; struct inet_diag_arg *diag_arg = arg;
...@@ -2260,7 +2259,7 @@ static int show_one_inet_sock(const struct sockaddr_nl *addr, ...@@ -2260,7 +2259,7 @@ static int show_one_inet_sock(const struct sockaddr_nl *addr,
if (!(diag_arg->f->families & (1 << r->idiag_family))) if (!(diag_arg->f->families & (1 << r->idiag_family)))
return 0; 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) { if (errno == EOPNOTSUPP || errno == ENOENT) {
/* Socket can't be closed, or is already closed. */ /* Socket can't be closed, or is already closed. */
return 0; return 0;
......
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