diff options
| author | Leon Romanovsky <[email protected]> | 2021-08-14 12:57:30 +0300 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2021-08-14 13:59:10 +0100 |
| commit | ed43fbac717882165a2a4bd64f7b1f56f7467bb7 (patch) | |
| tree | b226a58f4c495d4053ebb73ef08d4a9c86b957e4 /tools/perf/scripts/python | |
| parent | 11a861d767cdd87a34397821b0fd2095893b84b3 (diff) | |
devlink: Clear whole devlink_flash_notify struct
The { 0 } doesn't clear all fields in the struct, but tells to the
compiler to set all fields to zero and doesn't touch any sub-fields
if they exists.
The {} is an empty initialiser that instructs to fully initialize whole
struct including sub-fields, which is error-prone for future
devlink_flash_notify extensions.
Fixes: 6700acc5f1fe ("devlink: collect flash notify params into a struct")
Signed-off-by: Leon Romanovsky <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions