diff options
author | Javier Carrasco <[email protected]> | 2024-08-08 11:47:32 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2024-08-11 17:00:33 +0100 |
commit | e81d00a6b3b7d619060223d0754ca02e7d4ba90f (patch) | |
tree | f53d1479022a393915617a1e1a8808149d5d5174 /tools/perf/scripts/python/flamegraph.py | |
parent | 80d021bc572fbf1b59b029672df5be069dd078ae (diff) |
net: mvpp2: use port_count to remove ports
As discussed in [1], there is no need to iterate over child nodes to
remove the list of ports. Instead, a loop up to `port_count` ports can
be used, and is in fact more reliable in case the child node
availability changes.
The suggested approach removes the need for the `fwnode` and
`port_fwnode` variables in mvpp2_remove() as well.
Link: https://lore.kernel.org/all/[email protected]/ [1]
Suggested-by: Russell King <[email protected]>
Signed-off-by: Javier Carrasco <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions