]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: magnetometer: ak8975: unify return code variable name
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 5 May 2026 11:46:09 +0000 (13:46 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 31 May 2026 09:59:37 +0000 (10:59 +0100)
commita474d5cbdf306e65dc3a219c480a55b5a07893ed
tree690d17da3d8891f4dbfabab3ec098287afcc3299
parentdbb1f2fa2bba8df30927419d8cb7c56016452a5c
iio: magnetometer: ak8975: unify return code variable name

In one case 'rc' is used in the other 'err', the most use 'ret'.
Make the latter use the former, id est 'ret'.

While at it, drop unneeded ' < 0' checks.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Joshua Crofts <joshua.crofts1@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/magnetometer/ak8975.c