From: Shivani Bhardwaj Date: Fri, 16 Oct 2015 16:19:01 +0000 (+0530) Subject: Staging: fbtft: fb_ra8875: Remove useless cast X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e788b70f3bc058b73390e03bd8e58835ac66fa82;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Staging: fbtft: fb_ra8875: Remove useless cast Remove explicit type conversion as it is not required. Semantic patch used: @@ type T; T e; identifier x; @@ * T x = (T)e; Signed-off-by: Shivani Bhardwaj Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/fbtft/fb_ra8875.c b/drivers/staging/fbtft/fb_ra8875.c index 86e43e158c61..b167c5061631 100644 --- a/drivers/staging/fbtft/fb_ra8875.c +++ b/drivers/staging/fbtft/fb_ra8875.c @@ -204,7 +204,7 @@ static void write_reg8_bus8(struct fbtft_par *par, int len, ...) { va_list args; int i, ret; - u8 *buf = (u8 *)par->buf; + u8 *buf = par->buf; /* slow down spi-speed for writing registers */ par->fbtftops.write = write_spi;