tc-testing: remove duplicate code in tdc.py
authorRoman Mashak <mrv@mojatatu.com>
Tue, 7 Apr 2020 17:13:25 +0000 (13:13 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Apr 2020 01:38:55 +0000 (18:38 -0700)
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>
tools/testing/selftests/tc-testing/tdc.py

index e566c70..a3e4318 100755 (executable)
@@ -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)