Staging: fbtft: fb_agm1264k-fl: Remove unnecessary cast
authorShivani Bhardwaj <shivanib134@gmail.com>
Fri, 16 Oct 2015 16:08:34 +0000 (21:38 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Oct 2015 05:56:23 +0000 (22:56 -0700)
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>
drivers/staging/fbtft/fb_agm1264k-fl.c

index 19f6136eb310c370ee034536b87fc449d3c1f6df..2a50cf957101116f27a14b76ee1364f030ec1efb 100644 (file)
@@ -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);