Staging: fbtft: fb_agm1264k-fl: Remove unnecessary cast
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- drivers/staging/fbtft/fb_agm1264k-fl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/fbtft/fb_agm1264k-fl.c +1 -1
@@ -177,7 +177,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);
Signature · 1 line
2.1.0