diff options
| author | Leon Romanovsky <leonro@nvidia.com> | 2026-07-13 11:10:35 +0300 |
|---|---|---|
| committer | Leon Romanovsky <leon@kernel.org> | 2026-07-14 02:53:14 -0400 |
| commit | eeb9697db6c16d9bb2ce7b7ddf95aa20305aa9f2 (patch) | |
| tree | b8d1557c4122fa0e4f7e3570103f7c77578c83d2 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 6a57af838b1a56405a9bde9030de16df901ae2ca (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/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions
