aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/tc-testing
diff options
context:
space:
mode:
authorRoman Mashak <mrv@mojatatu.com>2020-04-07 13:13:25 -0400
committerDavid S. Miller <davem@davemloft.net>2020-04-07 18:38:55 -0700
commitcb9533d1c683219bc982905046c05e24bfaf4996 (patch)
tree07c7254994aca97abaa2e6e39e1f94f27f839a1b /tools/testing/selftests/tc-testing
parenthsr: check protocol version in hsr_newlink() (diff)
downloadlinux-dev-cb9533d1c683219bc982905046c05e24bfaf4996.tar.xz
linux-dev-cb9533d1c683219bc982905046c05e24bfaf4996.zip
tc-testing: remove duplicate code in tdc.py
In set_operation_mode() function remove duplicated check for args.list parameter, which is already done one line before. Signed-off-by: Roman Mashak <mrv@mojatatu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/tc-testing')
-rwxr-xr-xtools/testing/selftests/tc-testing/tdc.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/testing/selftests/tc-testing/tdc.py b/tools/testing/selftests/tc-testing/tdc.py
index e566c70e64a1..a3e43189d940 100755
--- a/tools/testing/selftests/tc-testing/tdc.py
+++ b/tools/testing/selftests/tc-testing/tdc.py
@@ -713,9 +713,8 @@ def set_operation_mode(pm, parser, args, remaining):
exit(0)
if args.list:
- if args.list:
- list_test_cases(alltests)
- exit(0)
+ list_test_cases(alltests)
+ exit(0)
if len(alltests):
req_plugins = pm.get_required_plugins(alltests)