Skip to content

Commit

Permalink
selftests: mptcp: removed defined but unused vars
Browse files Browse the repository at this point in the history
Some variables were set but never used.

This was not causing any issues except adding some confusion and having
shellcheck complaining about them.

Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
  • Loading branch information
Matthieu Baerts authored and Jakub Kicinski committed Dec 2, 2022
1 parent b4e0df4 commit b71dd70
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions tools/testing/selftests/net/mptcp/mptcp_connect.sh
Original file line number Diff line number Diff line change
Expand Up @@ -781,15 +781,13 @@ run_tests_mptfo()

run_tests_disconnect()
{
local peekmode="$1"
local old_cin=$cin
local old_sin=$sin

cat $cin $cin $cin > "$cin".disconnect

# force do_transfer to cope with the multiple tranmissions
sin="$cin.disconnect"
sin_disconnect=$old_sin
cin="$cin.disconnect"
cin_disconnect="$old_cin"
connect_per_transfer=3
Expand All @@ -800,7 +798,6 @@ run_tests_disconnect()

# restore previous status
sin=$old_sin
sin_disconnect="$cout".disconnect
cin=$old_cin
cin_disconnect="$cin".disconnect
connect_per_transfer=1
Expand Down
1 change: 0 additions & 1 deletion tools/testing/selftests/net/mptcp/mptcp_sockopt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ ksft_skip=4
timeout_poll=30
timeout_test=$((timeout_poll * 2 + 1))
mptcp_connect=""
do_all_tests=1

add_mark_rules()
{
Expand Down
3 changes: 0 additions & 3 deletions tools/testing/selftests/net/mptcp/simult_flows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,6 @@ do_transfer()
:> "$sout"
:> "$capout"

local addr_port
addr_port=$(printf "%s:%d" ${connect_addr} ${port})

if $capture; then
local capuser
if [ -z $SUDO_USER ] ; then
Expand Down

0 comments on commit b71dd70

Please sign in to comment.