Skip to content

Commit

Permalink
tc-testing: remove duplicate code in tdc.py
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Roman Mashak authored and David S. Miller committed Apr 8, 2020
1 parent 4faab8c commit cb9533d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tools/testing/selftests/tc-testing/tdc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cb9533d

Please sign in to comment.