Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b91617ea authored by Jonathan Cameron's avatar Jonathan Cameron
Browse files

staging:iio:light: Add some missing brackets to make sure code works as intended.



Note this is not a bug due to the fact the region cannot be reached without the sanity check passing. The autobuilder reported it as missaligned code which is kind of true as well.

Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
Cc: Roberta Dobrescu <roberta.dobrescu@gmail.com>
parent 2fdaf3f4
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -369,12 +369,13 @@ static int isl29018_write_raw(struct iio_dev *indio_dev,
		}
		}
		break;
		break;
	case IIO_CHAN_INFO_INT_TIME:
	case IIO_CHAN_INFO_INT_TIME:
		if (chan->type == IIO_LIGHT)
		if (chan->type == IIO_LIGHT) {
			if (val != 0) {
			if (val != 0) {
				mutex_unlock(&chip->lock);
				mutex_unlock(&chip->lock);
				return -EINVAL;
				return -EINVAL;
			}
			}
			ret = isl29018_set_integration_time(chip, val2);
			ret = isl29018_set_integration_time(chip, val2);
		}
		break;
		break;
	case IIO_CHAN_INFO_SCALE:
	case IIO_CHAN_INFO_SCALE:
		if (chan->type == IIO_LIGHT)
		if (chan->type == IIO_LIGHT)