mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
iio: pressure: abp2030pa: Remove unreachable return in abp2_read_raw()
In the IIO_CHAN_INFO_RAW case every arm of the inner switch on channel->type returns so this final return is never reached. Found by smatch: drivers/iio/pressure/abp2030pa.c:382 abp2_read_raw() warn: ignoring unreachable code. Assisted-by: Claude:claude-opus-5 Signed-off-by: Babanpreet Singh <bbnpreetsingh@gmail.com> Reviewed-by: Siratul Islam <siratul.islam@linux.dev> Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
This commit is contained in:
parent
b18d51935a
commit
d231462ae5
|
|
@ -379,7 +379,6 @@ static int abp2_read_raw(struct iio_dev *indio_dev,
|
|||
default:
|
||||
return -EINVAL;
|
||||
}
|
||||
return IIO_VAL_INT;
|
||||
|
||||
case IIO_CHAN_INFO_SCALE:
|
||||
switch (channel->type) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user