diff options
author | Janani Ravichandran <janani.rvchndrn@gmail.com> | 2016-02-25 13:44:39 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-03-11 22:09:09 -0800 |
commit | 5084d7c66248394d3887805c7f13c5d274573bfd (patch) | |
tree | 09288e63ff04e2e7c6f6a9d752e4675907e5c9c7 /drivers/staging/fbtft | |
parent | 264cd1d1c23dfe9b758e3e454ea2db84226c4a79 (diff) | |
download | linux-5084d7c66248394d3887805c7f13c5d274573bfd.tar.bz2 |
staging: fbtft: fb_uc1611.c: Drop void pointer cast
Void pointers need not be cast to other pointer types.
Semantic patch used:
@r@
expression x;
void* e;
type T;
identifier f;
@@
(
*((T *)e)
|
((T *)x) [...]
|
((T *)x)->f
|
- (T *)
e
)
Signed-off-by: Janani Ravichandran <janani.rvchndrn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/fbtft')
-rw-r--r-- | drivers/staging/fbtft/fb_uc1611.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/fbtft/fb_uc1611.c b/drivers/staging/fbtft/fb_uc1611.c index 4e828142058e..e87401aacfb3 100644 --- a/drivers/staging/fbtft/fb_uc1611.c +++ b/drivers/staging/fbtft/fb_uc1611.c @@ -222,8 +222,8 @@ static int set_var(struct fbtft_par *par) static int write_vmem(struct fbtft_par *par, size_t offset, size_t len) { u8 *vmem8 = (u8 *)(par->info->screen_buffer); - u8 *buf8 = (u8 *)(par->txbuf.buf); - u16 *buf16 = (u16 *)(par->txbuf.buf); + u8 *buf8 = par->txbuf.buf; + u16 *buf16 = par->txbuf.buf; int line_length = par->info->fix.line_length; int y_start = (offset / line_length); int y_end = (offset + len - 1) / line_length; |