Commit 3c4fe898 authored by zhujun2's avatar zhujun2 Committed by David S. Miller

selftests: net: remove unused variables

These variables are never referenced in the code, just remove them
Signed-off-by: default avatarzhujun2 <zhujun2@cmss.chinamobile.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 101c6032
...@@ -294,7 +294,6 @@ static void fill_sockaddr(struct sock_addr *addr, bool abstract) ...@@ -294,7 +294,6 @@ static void fill_sockaddr(struct sock_addr *addr, bool abstract)
static void client(FIXTURE_DATA(scm_pidfd) *self, static void client(FIXTURE_DATA(scm_pidfd) *self,
const FIXTURE_VARIANT(scm_pidfd) *variant) const FIXTURE_VARIANT(scm_pidfd) *variant)
{ {
int err;
int cfd; int cfd;
socklen_t len; socklen_t len;
struct ucred peer_cred; struct ucred peer_cred;
......
...@@ -180,9 +180,7 @@ main(int argc, char **argv) ...@@ -180,9 +180,7 @@ main(int argc, char **argv)
char buf[1024]; char buf[1024];
int on = 0; int on = 0;
char oob; char oob;
int flags;
int atmark; int atmark;
char *tmp_file;
lfd = socket(AF_UNIX, SOCK_STREAM, 0); lfd = socket(AF_UNIX, SOCK_STREAM, 0);
memset(&consumer_addr, 0, sizeof(consumer_addr)); memset(&consumer_addr, 0, sizeof(consumer_addr));
......
...@@ -1864,7 +1864,8 @@ static char *random_msg(int len) ...@@ -1864,7 +1864,8 @@ static char *random_msg(int len)
n += i; n += i;
len -= i; len -= i;
} }
i = snprintf(m + n, olen - n, "%.*s", len,
snprintf(m + n, olen - n, "%.*s", len,
"abcdefghijklmnopqrstuvwxyz"); "abcdefghijklmnopqrstuvwxyz");
return m; return m;
} }
......
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