diff mbox series

[net,1/1] tc-testing: remove duplicate code in tdc.py

Message ID 1586279605-6689-1-git-send-email-mrv@mojatatu.com
State Accepted
Delegated to: David Miller
Headers show
Series [net,1/1] tc-testing: remove duplicate code in tdc.py | expand

Commit Message

Roman Mashak April 7, 2020, 5:13 p.m. UTC
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>
---
 tools/testing/selftests/tc-testing/tdc.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

Comments

David Miller April 8, 2020, 1:39 a.m. UTC | #1
From: Roman Mashak <mrv@mojatatu.com>
Date: Tue,  7 Apr 2020 13:13:25 -0400

> 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>

Applied.
diff mbox series

Patch

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)