Commit 79ca243d authored by Lars-Peter Clausen's avatar Lars-Peter Clausen Committed by Jonathan Cameron

iio: vz89x: Remove unnecessary cast

The case to u8 * is unnecessary here since the expression is already of
type u8 *.
Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 52c65f5b
...@@ -242,7 +242,7 @@ static int vz89x_get_resistance_reading(struct vz89x_data *data, ...@@ -242,7 +242,7 @@ static int vz89x_get_resistance_reading(struct vz89x_data *data,
struct iio_chan_spec const *chan, struct iio_chan_spec const *chan,
int *val) int *val)
{ {
u8 *tmp = (u8 *) &data->buffer[chan->address]; u8 *tmp = &data->buffer[chan->address];
switch (chan->scan_type.endianness) { switch (chan->scan_type.endianness) {
case IIO_LE: case IIO_LE:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment