Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Staging: fbtft: fb_agm1264k-fl: Remove unnecessary cast

Remove explicit typecast from variables as compiler can typecast
implicitly.
Semantic patch used:

@@
type T;
T e;
identifier x;
@@

* T x = (T)e;

Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Shivani Bhardwaj and committed by
Greg Kroah-Hartman
193ef315 ed400c96

+1 -1
+1 -1
drivers/staging/fbtft/fb_agm1264k-fl.c
··· 177 177 { 178 178 va_list args; 179 179 int i, ret; 180 - u8 *buf = (u8 *)par->buf; 180 + u8 *buf = par->buf; 181 181 182 182 if (unlikely(par->debug & DEBUG_WRITE_REGISTER)) { 183 183 va_start(args, len);