mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-05 17:01:17 +00:00
staging: ft1000: ft1000-usb: Remove useless cast on void pointer
void pointers do not need to be cast to other pointer types. The semantic patch used to find this: @r@ expression x; void* e; type T; identifier f; @@ ( *((T *)e) | ((T *)x)[...] | ((T *)x)->f | - (T *) e ) Build tested it. Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
e3b6db3294
commit
099e1f8f77
@ -653,7 +653,7 @@ int scram_dnldr(struct ft1000_usb *ft1000dev, void *pFileStart,
|
||||
|
||||
state = STATE_START_DWNLD;
|
||||
|
||||
file_hdr = (struct dsp_file_hdr *)pFileStart;
|
||||
file_hdr = pFileStart;
|
||||
|
||||
ft1000_write_register(ft1000dev, 0x800, FT1000_REG_MAG_WATERMARK);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user