From: Dixit Parmar Date: Wed, 10 Sep 2025 14:06:49 +0000 (+0530) Subject: iio: magnetometer: als31300: remove unused IIO_CHAN_INFO_PROCESSED handling X-Git-Tag: v6.18-rc1~74^2~7^2~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09579fb72e5412a4e98aee42c8a3ab3d437f8a32;p=thirdparty%2Fkernel%2Flinux.git iio: magnetometer: als31300: remove unused IIO_CHAN_INFO_PROCESSED handling The als31300 driver does not advertise IIO_CHAN_INFO_PROCESSED in its info_mask_* fields, so the corresponding case in read_raw() is never used. Drop the dead code to reduce unnecessary branches and improve clarity. Signed-off-by: Dixit Parmar Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/magnetometer/als31300.c b/drivers/iio/magnetometer/als31300.c index c083bef535739..2a2677428ed59 100644 --- a/drivers/iio/magnetometer/als31300.c +++ b/drivers/iio/magnetometer/als31300.c @@ -155,7 +155,6 @@ static int als31300_read_raw(struct iio_dev *indio_dev, int ret; switch (mask) { - case IIO_CHAN_INFO_PROCESSED: case IIO_CHAN_INFO_RAW: ret = als31300_get_measure(data, &t, &x, &y, &z); if (ret)