Skip to content

Commit

Permalink
iio: vz89x: Remove unnecessary cast
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lars-Peter Clausen authored and Jonathan Cameron committed Dec 16, 2021
1 parent 52c65f5 commit 79ca243
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/iio/chemical/vz89x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 79ca243

Please sign in to comment.