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

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 <shivanib134@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Shivani Bhardwaj and committed by
Greg Kroah-Hartman
f1092794 e788b70f

+1 -1
+1 -1
drivers/staging/fbtft/fb_ssd1331.c
··· 60 60 { 61 61 va_list args; 62 62 int i, ret; 63 - u8 *buf = (u8 *)par->buf; 63 + u8 *buf = par->buf; 64 64 65 65 if (unlikely(par->debug & DEBUG_WRITE_REGISTER)) { 66 66 va_start(args, len);