summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2020-08-23 20:17:07 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2020-08-28 20:11:59 +0200
commitd721b68654d0fcf8930fd0d2edfff78df82fb8c4 (patch)
tree62c54fb9110d4827e4ada62dd32f07116ea176e1 /tools
parentselftests: netfilter: exit on invalid parameters (diff)
downloadlinux-d721b68654d0fcf8930fd0d2edfff78df82fb8c4.tar.xz
linux-d721b68654d0fcf8930fd0d2edfff78df82fb8c4.zip
selftests: netfilter: remove unused variable in make_file()
'who' variable was not used in make_file() Problem found using Shellcheck Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/testing/selftests/netfilter/nft_flowtable.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/testing/selftests/netfilter/nft_flowtable.sh b/tools/testing/selftests/netfilter/nft_flowtable.sh
index dc05c9940597..1058952d1b36 100755
--- a/tools/testing/selftests/netfilter/nft_flowtable.sh
+++ b/tools/testing/selftests/netfilter/nft_flowtable.sh
@@ -212,7 +212,6 @@ ns2out=$(mktemp)
make_file()
{
name=$1
- who=$2
SIZE=$((RANDOM % (1024 * 8)))
TSIZE=$((SIZE * 1024))
@@ -304,8 +303,8 @@ test_tcp_forwarding_nat()
return $lret
}
-make_file "$ns1in" "ns1"
-make_file "$ns2in" "ns2"
+make_file "$ns1in"
+make_file "$ns2in"
# First test:
# No PMTU discovery, nsr1 is expected to fragment packets from ns1 to ns2 as needed.