diff options
| author | Zhengchao Shao <[email protected]> | 2022-08-29 15:12:19 +0800 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2022-09-01 08:06:45 +0200 |
| commit | a102c8973db7f7b7b6f75d51eed145d070438a49 (patch) | |
| tree | b79d8ca008bc816a2521cb817529ba4a43591944 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py | |
| parent | 0e4d354762cefd3e16b4cff8988ff276e45effc4 (diff) | |
net: sched: remove redundant NULL check in change hook function
Currently, the change function can be called by two ways. The one way is
that qdisc_change() will call it. Before calling change function,
qdisc_change() ensures tca[TCA_OPTIONS] is not empty. The other way is
that .init() will call it. The opt parameter is also checked before
calling change function in .init(). Therefore, it's no need to check the
input parameter opt in change function.
Signed-off-by: Zhengchao Shao <[email protected]>
Acked-by: Toke Høiland-Jørgensen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py')
0 files changed, 0 insertions, 0 deletions