“dace145374b8e39aeb920304c358ab5e220341ab”上不存在“drivers/mmc/host/wbsd.c”
提交 8f6eb025 编写于 作者: F Fabian Frederick 提交者: Jonathan Cameron

iio: common: remove unnecessary sizeof(u8)

sizeof(u8) is always 1.
Signed-off-by: NFabian Frederick <fabf@skynet.be>
Acked-by: NHartmut Knaack <knaack.h@gmx.de>
Signed-off-by: NJonathan Cameron <jic23@kernel.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册