Commit 8f6eb025 authored by Fabian Frederick's avatar Fabian Frederick Committed by Jonathan Cameron

iio: common: remove unnecessary sizeof(u8)

sizeof(u8) is always 1.
Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Acked-by: default avatarHartmut Knaack <knaack.h@gmx.de>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 57e73a42
......@@ -54,7 +54,7 @@ static int st_sensors_spi_read(struct st_sensor_transfer_buffer *tb,
if (err)
goto acc_spi_read_error;
memcpy(data, tb->rx_buf, len*sizeof(u8));
memcpy(data, tb->rx_buf, len);
mutex_unlock(&tb->buf_lock);
return len;
......
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