summaryrefslogtreecommitdiffstats
path: root/drivers/staging/cptm1217
diff options
context:
space:
mode:
authorTapasweni Pathak <tapaswenipathak@gmail.com>2014-10-30 17:01:38 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-10-30 13:05:46 -0700
commit12c492cf462704fcfc8c86046d539c16d57dfbe3 (patch)
tree767f75b7ed0495d6c8de3c7fe750eb164c7603f8 /drivers/staging/cptm1217
parent3fd511d98660cba235dfadf1f296a3246fbaea58 (diff)
downloadop-kernel-dev-12c492cf462704fcfc8c86046d539c16d57dfbe3.zip
op-kernel-dev-12c492cf462704fcfc8c86046d539c16d57dfbe3.tar.gz
staging: cptm1217: 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>
Diffstat (limited to 'drivers/staging/cptm1217')
-rw-r--r--drivers/staging/cptm1217/clearpad_tm1217.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/cptm1217/clearpad_tm1217.c b/drivers/staging/cptm1217/clearpad_tm1217.c
index edf9ff2..7f265ce 100644
--- a/drivers/staging/cptm1217/clearpad_tm1217.c
+++ b/drivers/staging/cptm1217/clearpad_tm1217.c
@@ -278,7 +278,7 @@ static void cp_tm1217_get_data(struct cp_tm1217_device *ts)
static irqreturn_t cp_tm1217_sample_thread(int irq, void *handle)
{
- struct cp_tm1217_device *ts = (struct cp_tm1217_device *) handle;
+ struct cp_tm1217_device *ts = handle;
u8 req[2];
int retval;
OpenPOWER on IntegriCloud