diff options
author | Shivani Bhardwaj <shivanib134@gmail.com> | 2015-10-16 16:19:20 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-17 05:56:23 (GMT) |
commit | f1092794c0132cfca2329748983b840ffeae379e (patch) | |
tree | 7628690fefc5e4b150ce544a25bc87ec3bba5057 /drivers/staging | |
parent | e788b70f3bc058b73390e03bd8e58835ac66fa82 (diff) | |
download | linux-f1092794c0132cfca2329748983b840ffeae379e.tar.xz |
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>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/fbtft/fb_ssd1331.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/fbtft/fb_ssd1331.c b/drivers/staging/fbtft/fb_ssd1331.c index 53cb8e9..bd294f8 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); |