diff options
| author | David Lechner <dlechner@baylibre.com> | 2025-06-11 17:39:17 -0500 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2025-06-26 19:32:57 +0100 |
| commit | 73f31d9f8c8195f05830d22f28a4de0e16647d77 (patch) | |
| tree | c3a8564f4fb85273a466fd1511a2ac75229905ad /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | b2dead5962385031b20ab79497a626c4613f4bf4 (diff) | |
iio: pressure: mprls0025pa: use = { } instead of memset()
Use { } instead of memset() to zero-initialize stack memory to simplify
the code.
The initialize of the cmd value is trivial so it can be moved to the
array initializer as well.
Signed-off-by: David Lechner <dlechner@baylibre.com>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20250611-iio-zero-init-stack-with-instead-of-memset-v1-25-ebb2d0a24302@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions
