aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/lib
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2025-05-07 14:45:02 +0100
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2025-05-21 14:21:34 +0100
commit6cdb4009c20186cc3aed7b09187d1cd366960d78 (patch)
treee1d006669ed3bbb93c5fbb8d21529ad246e5e93d /scripts/lib
parentiio: chemical: mhz19b: Fix error code in probe() (diff)
downloadlinux-rng-6cdb4009c20186cc3aed7b09187d1cd366960d78.tar.xz
linux-rng-6cdb4009c20186cc3aed7b09187d1cd366960d78.zip
iio: admv1013: replace redundant ternary operator with just len
The variable ret is being assigned a return value and non-zero error return paths are taken at all stages. At the end of the function ret is always zero, so the ternary operator checking for zero ret is redundant and can be replaced with just len instead. Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Reviewed-by: David Lechner <dlechner@baylibre.com> Link: https://patch.msgid.link/20250507134502.254736-1-colin.i.king@gmail.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'scripts/lib')
0 files changed, 0 insertions, 0 deletions