projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4faab8c
)
tc-testing: remove duplicate code in tdc.py
author
Roman Mashak
<mrv@mojatatu.com>
Tue, 7 Apr 2020 17:13:25 +0000
(13:13 -0400)
committer
David 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
patch
|
blob
|
history
diff --git
a/tools/testing/selftests/tc-testing/tdc.py
b/tools/testing/selftests/tc-testing/tdc.py
index e566c70e64a1971e653a2922012e5e420a85b193..a3e43189d94003db8170a91f7d9b71ab4f1a407d 100755
(executable)
--- 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)