summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorLeon Romanovsky <leonro@nvidia.com>2021-08-14 12:57:30 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-09-15 10:50:40 +0300
commit2c0b826f4a7906e833a343423a8bf814d9cc8b34 (patch)
treee8239ef61807f966999e9d5eed667b5a01a4d1b6 /samples
parent2aa3d5c9e19e2db01985856bb87c1b46e1f64d50 (diff)
downloadlinux-2c0b826f4a7906e833a343423a8bf814d9cc8b34.tar.xz
devlink: Clear whole devlink_flash_notify struct
[ Upstream commit ed43fbac717882165a2a4bd64f7b1f56f7467bb7 ] 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 <leonro@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions