From: Fabian Frederick Date: Sun, 16 Nov 2014 12:33:24 +0000 (+0100) Subject: iio: common: remove unnecessary sizeof(u8) X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8f6eb02596cc297c12ee16c86b9bbe1c186dda15;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git iio: common: remove unnecessary sizeof(u8) sizeof(u8) is always 1. Signed-off-by: Fabian Frederick Acked-by: Hartmut Knaack Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/common/st_sensors/st_sensors_spi.c b/drivers/iio/common/st_sensors/st_sensors_spi.c index 78a6a1ab3ece..5b377373f48d 100644 --- a/drivers/iio/common/st_sensors/st_sensors_spi.c +++ b/drivers/iio/common/st_sensors/st_sensors_spi.c @@ -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;