From: Shivani Bhardwaj Date: Fri, 16 Oct 2015 16:19:20 +0000 (+0530) Subject: Staging: fbtft: fb_ssd1331: Remove unnecessary cast X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f1092794c0132cfca2329748983b840ffeae379e;p=openwrt%2Fstaging%2Fblogic.git Staging: fbtft: fb_ssd1331: Remove unnecessary cast Compiler can typecast variables implicitly so, explicit type cast is not required and should be removed. 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_ssd1331.c b/drivers/staging/fbtft/fb_ssd1331.c index 53cb8e9847cf..bd294f886c5f 100644 --- a/drivers/staging/fbtft/fb_ssd1331.c +++ b/drivers/staging/fbtft/fb_ssd1331.c @@ -60,7 +60,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; if (unlikely(par->debug & DEBUG_WRITE_REGISTER)) { va_start(args, len);