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;