Commit 78de165b authored by David Lechner's avatar David Lechner Committed by Greg Kroah-Hartman
Browse files

iio: imu: inv_icm42600: use = { } instead of memset()



[ Upstream commit 352112e2 ]

Use { } instead of memset() to zero-initialize stack memory to simplify
the code.

Signed-off-by: default avatarDavid Lechner <dlechner@baylibre.com>
Reviewed-by: default avatarNuno Sá <nuno.sa@analog.com>
Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20250611-iio-zero-init-stack-with-instead-of-memset-v1-16-ebb2d0a24302@baylibre.com


Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Stable-dep-of: dfdc31e7 ("iio: imu: inv_icm42600: change invalid data error to -EBUSY")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4bd0edbd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment