mirror of https://gitee.com/openkylin/linux.git
staging: fbtft: fbtft-bus.c: Drop unneeded void pointer cast
Remove unneeded cast on the void pointer par->txbuf.buf . 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>
This commit is contained in:
parent
0c9ab986e2
commit
64f93e1724
|
@ -125,7 +125,7 @@ EXPORT_SYMBOL(fbtft_write_reg8_bus9);
|
|||
int fbtft_write_vmem16_bus8(struct fbtft_par *par, size_t offset, size_t len)
|
||||
{
|
||||
u16 *vmem16;
|
||||
u16 *txbuf16 = (u16 *)par->txbuf.buf;
|
||||
u16 *txbuf16 = par->txbuf.buf;
|
||||
size_t remain;
|
||||
size_t to_copy;
|
||||
size_t tx_array_size;
|
||||
|
@ -150,7 +150,7 @@ int fbtft_write_vmem16_bus8(struct fbtft_par *par, size_t offset, size_t len)
|
|||
tx_array_size = par->txbuf.len / 2;
|
||||
|
||||
if (par->startbyte) {
|
||||
txbuf16 = (u16 *)(par->txbuf.buf + 1);
|
||||
txbuf16 = par->txbuf.buf + 1;
|
||||
tx_array_size -= 2;
|
||||
*(u8 *)(par->txbuf.buf) = par->startbyte | 0x2;
|
||||
startbyte_size = 1;
|
||||
|
|
Loading…
Reference in New Issue