summaryrefslogtreecommitdiff
path: root/drivers/staging/gdm724x/gdm_tty.c
diff options
context:
space:
mode:
authorShraddha Barke <shraddha.6596@gmail.com>2015-10-14 22:28:20 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-17 08:51:48 +0300
commit2594ca30c0ae7f126fc84dc3a795f007c2b2787f (patch)
tree1bb7f41399a6f132b96096d9f2337077d674f547 /drivers/staging/gdm724x/gdm_tty.c
parent7f44582ea77229331c52cdd1374488523796a86f (diff)
downloadlinux-2594ca30c0ae7f126fc84dc3a795f007c2b2787f.tar.xz
Staging: gdm724x: Remove unnecessary cast on void pointer
void pointers do not need to be cast to other pointer types. Semantic patch: @r@ expression x; void* e; type T; identifier f; @@ ( *((T *)e) | ((T *)x)[...] | ((T *)x)->f | - (T *) e ) Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/gdm724x/gdm_tty.c')
-rw-r--r--drivers/staging/gdm724x/gdm_tty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/gdm724x/gdm_tty.c b/drivers/staging/gdm724x/gdm_tty.c
index 001348ccacf9..655f7688d039 100644
--- a/drivers/staging/gdm724x/gdm_tty.c
+++ b/drivers/staging/gdm724x/gdm_tty.c
@@ -167,7 +167,7 @@ static int gdm_tty_recv_complete(void *data,
static void gdm_tty_send_complete(void *arg)
{
- struct gdm *gdm = (struct gdm *)arg;
+ struct gdm *gdm = arg;
if (!GDM_TTY_READY(gdm))
return;