aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/net/nettest.c
diff options
context:
space:
mode:
authorzhujun2 <zhujun2@cmss.chinamobile.com>2023-10-15 23:30:39 -0700
committerDavid S. Miller <davem@davemloft.net>2023-10-16 09:20:08 +0100
commit3c4fe89878feb57bea6ad9f14997298fddf8dc10 (patch)
treeea4347249fc940d944f0e0484d52258cde2c99c1 /tools/testing/selftests/net/nettest.c
parentnet: cxgb3: simplify logic for rspq_check_napi (diff)
downloadlinux-3c4fe89878feb57bea6ad9f14997298fddf8dc10.tar.xz
linux-3c4fe89878feb57bea6ad9f14997298fddf8dc10.zip
selftests: net: remove unused variables
These variables are never referenced in the code, just remove them Signed-off-by: zhujun2 <zhujun2@cmss.chinamobile.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/net/nettest.c')
-rw-r--r--tools/testing/selftests/net/nettest.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/testing/selftests/net/nettest.c b/tools/testing/selftests/net/nettest.c
index 39a0e01f8554..cd8a58097448 100644
--- a/tools/testing/selftests/net/nettest.c
+++ b/tools/testing/selftests/net/nettest.c
@@ -1864,8 +1864,9 @@ static char *random_msg(int len)
n += i;
len -= i;
}
- i = snprintf(m + n, olen - n, "%.*s", len,
- "abcdefghijklmnopqrstuvwxyz");
+
+ snprintf(m + n, olen - n, "%.*s", len,
+ "abcdefghijklmnopqrstuvwxyz");
return m;
}