aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorZhengchao Shao <[email protected]>2023-08-10 21:50:06 +0800
committerDavid S. Miller <[email protected]>2023-08-11 11:10:55 +0100
commita8f3f4b448458a117465b9404d18994469c01957 (patch)
treee636daa4dd68d8f6208942eba2d52adae777b185 /tools/perf/scripts/python/task-analyzer.py
parentcc317ea3d9272fab4f6fef527c865f30ca479394 (diff)
bonding: use bond_set_slave_arr to simplify code
In bond_reset_slave_arr(), values are assigned and memory is released only when the variables "usable" and "all" are not NULL. But even if the "usable" and "all" variables are NULL, they can still work, because value will be checked in kfree_rcu. Therefore, use bond_set_slave_arr() and set the input parameters "usable_slaves" and "all_slaves" to NULL to simplify the code in bond_reset_slave_arr(). And the same to bond_uninit(). Signed-off-by: Zhengchao Shao <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions