diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2021-12-09 17:17:30 +0100 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2021-12-16 16:34:54 +0000 |
commit | 79ca243d83415c8f43e1c071b744fd8db8c1ccc1 (patch) | |
tree | 925da83c1eafa3105cbd8acabf3b85fb5b13d379 /drivers/iio | |
parent | 52c65f5b095782abb1accbacfe6f6962a583fe05 (diff) | |
download | linux-stable-79ca243d83415c8f43e1c071b744fd8db8c1ccc1.tar.gz linux-stable-79ca243d83415c8f43e1c071b744fd8db8c1ccc1.tar.bz2 linux-stable-79ca243d83415c8f43e1c071b744fd8db8c1ccc1.zip |
iio: vz89x: Remove unnecessary cast
The case to u8 * is unnecessary here since the expression is already of
type u8 *.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio')
-rw-r--r-- | drivers/iio/chemical/vz89x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/chemical/vz89x.c b/drivers/iio/chemical/vz89x.c index 23b22a5f5c1c..e7e1c74a351e 100644 --- a/drivers/iio/chemical/vz89x.c +++ b/drivers/iio/chemical/vz89x.c @@ -242,7 +242,7 @@ static int vz89x_get_resistance_reading(struct vz89x_data *data, struct iio_chan_spec const *chan, int *val) { - u8 *tmp = (u8 *) &data->buffer[chan->address]; + u8 *tmp = &data->buffer[chan->address]; switch (chan->scan_type.endianness) { case IIO_LE: |