summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorLeon Romanovsky <leonro@nvidia.com>2026-07-13 11:10:35 +0300
committerLeon Romanovsky <leon@kernel.org>2026-07-14 02:53:14 -0400
commiteeb9697db6c16d9bb2ce7b7ddf95aa20305aa9f2 (patch)
treeb8d1557c4122fa0e4f7e3570103f7c77578c83d2 /tools/perf/scripts/python/stackcollapse.py
parent6a57af838b1a56405a9bde9030de16df901ae2ca (diff)
RDMA: Remove redundant memset() from query_device callbacks
The core always hands the driver's query_device() callback a zeroed ib_device_attr. There are only two callers of the op and both clear the structure before invoking it: setup_device() memsets &device->attrs, and ib_uverbs_ex_query_device() passes an on-stack structure initialized to {}. The open-coded memset(props, 0, sizeof(*props)) at the top of the driver callbacks is therefore redundant. Remove it from all drivers. Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions