summaryrefslogtreecommitdiffstats
path: root/drivers/staging/gdm724x/gdm_tty.c
diff options
context:
space:
mode:
authorShraddha Barke <shraddha.6596@gmail.com>2015-10-15 00:58:20 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-16 22:51:48 -0700
commit2594ca30c0ae7f126fc84dc3a795f007c2b2787f (patch)
tree1bb7f41399a6f132b96096d9f2337077d674f547 /drivers/staging/gdm724x/gdm_tty.c
parent7f44582ea77229331c52cdd1374488523796a86f (diff)
downloadop-kernel-dev-2594ca30c0ae7f126fc84dc3a795f007c2b2787f.zip
op-kernel-dev-2594ca30c0ae7f126fc84dc3a795f007c2b2787f.tar.gz
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 001348c..655f768 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;
OpenPOWER on IntegriCloud