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>
This commit is contained in:
parent
52c65f5b09
commit
79ca243d83
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue