diff options
author | 2025-01-05 16:34:06 +0800 | |
---|---|---|
committer | 2025-01-10 15:26:12 +0100 | |
commit | 037116a6cca3e4dbc97905b6e254e8fe7475d502 (patch) | |
tree | 10048cd01dd0633b5f3b8948f10d361b3b92e2f1 /tools/perf/scripts/python/syscall-counts.py | |
parent | driver core: Rename declaration parameter name for API device_find_child() cluster (diff) | |
download | wireguard-linux-037116a6cca3e4dbc97905b6e254e8fe7475d502.tar.xz wireguard-linux-037116a6cca3e4dbc97905b6e254e8fe7475d502.zip |
driver core: Correct parameter check for API device_for_each_child_reverse_from()
device_for_each_child_reverse_from() checks (!parent->p) for its
parameter @parent, and that is not consistent with other APIs of
its cluster as shown below:
device_for_each_child_reverse_from() // check (!parent->p)
device_for_each_child_reverse() // check (!parent || !parent->p)
device_for_each_child() // same above
device_find_child() // same above
Correct the API's parameter @parent check by (!parent || !parent->p).
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
Link: https://lore.kernel.org/r/20250105-class_fix-v6-5-3a2f1768d4d4@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions