summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTapasweni Pathak <tapaswenipathak@gmail.com>2014-10-30 17:04:24 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-10-30 13:06:04 -0700
commit099e1f8f777f4f329181415fc405a3a2093a3e15 (patch)
treea23ffb4dd595071e1eac8e6abd6debbe6ee2d583
parente3b6db3294b079b5bc986cceb465feddf3623906 (diff)
downloadop-kernel-dev-099e1f8f777f4f329181415fc405a3a2093a3e15.zip
op-kernel-dev-099e1f8f777f4f329181415fc405a3a2093a3e15.tar.gz
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>
-rw-r--r--drivers/staging/ft1000/ft1000-usb/ft1000_download.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/ft1000/ft1000-usb/ft1000_download.c b/drivers/staging/ft1000/ft1000-usb/ft1000_download.c
index 7fb5c3f..fe882bd 100644
--- a/drivers/staging/ft1000/ft1000-usb/ft1000_download.c
+++ b/drivers/staging/ft1000/ft1000-usb/ft1000_download.c
@@ -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);
OpenPOWER on IntegriCloud