]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: magnetometer: ak8975: drop duplicate NULL check
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 5 May 2026 11:46:06 +0000 (13:46 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 31 May 2026 09:59:36 +0000 (10:59 +0100)
commit6982743df9e70280caf337671db22c9b4afd4b45
tree1fab0c02df5a3094907d5807641f37a8105fcb42
parent4cff98838322d488016c1b0edfa980fc336de630
iio: magnetometer: ak8975: drop duplicate NULL check

The gpiod_set_consumer_name() is NULL-aware, no need to perform the same
check in the caller.

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