summaryrefslogtreecommitdiff
path: root/rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git
diff options
context:
space:
mode:
authorDavid Lechner <dlechner@baylibre.com>2026-05-21 20:25:29 -0500
committerJonathan Cameron <jic23@kernel.org>2026-05-31 11:01:47 +0100
commitf9f99197a88260046b56cf4d24e51aff849bd45b (patch)
treed3fd8cd54e9d21ca847ecc5a7cf390bf0336e1fc /rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git
parentf68afce8e8a74f52a879f56f607dfedf552b5ab5 (diff)
iio: humidity: ens210: remove compiler warning workaround
Rewrite IIO_CHAN_INFO_RAW case to avoid needing to add unreachable code to work around a compiler warning. When scoped_guard() was first introduced, compilers could not see when it returned unconditionally from inside the hidden for loop. This has since been fixed in the macro definition. So removing the `return -EINVAL` should be enough. Still, we can improve readability, decrease indentation and avoid the hidden for loop by rewriting the case without scoped_guard(). Signed-off-by: David Lechner <dlechner@baylibre.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions