From: Geert Uytterhoeven Date: Sun, 12 Jan 2014 12:59:06 +0000 (+0100) Subject: spi: Kill superfluous cast in spi_w8r16() X-Git-Tag: v3.14-rc1~91^2~6^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=269ccca8ec1a3991e07eaf5f90326134bd17781a;p=platform%2Fkernel%2Flinux-exynos.git spi: Kill superfluous cast in spi_w8r16() spi_write_then_read() takes a "void *" for rxbuf, so there's no need to cast the buffer pointer to "u8 *". Signed-off-by: Geert Uytterhoeven Signed-off-by: Mark Brown --- diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h index 77b529e..21a7251 100644 --- a/include/linux/spi/spi.h +++ b/include/linux/spi/spi.h @@ -847,7 +847,7 @@ static inline ssize_t spi_w8r16(struct spi_device *spi, u8 cmd) ssize_t status; u16 result; - status = spi_write_then_read(spi, &cmd, 1, (u8 *) &result, 2); + status = spi_write_then_read(spi, &cmd, 1, &result, 2); /* return negative errno or unsigned value */ return (status < 0) ? status : result;