From: Janani Ravichandran Date: Thu, 25 Feb 2016 19:46:11 +0000 (-0500) Subject: staging: fsl-mc: Drop unneeded void pointer cast X-Git-Tag: v4.6-rc1~103^2~71 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=36b64670fae87abd190f2896de24277c6c8ae8ac;p=karo-tx-linux.git staging: fsl-mc: Drop unneeded void pointer cast Void pointers need not be cast to other pointer types. Semantic patch used: @r@ expression x; void *e; type T; identifier f; @@ ( *((T *)e) | ((T *)x) [...] | ((T *)x)->f | - (T *) e ) Signed-off-by: Janani Ravichandran Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/fsl-mc/bus/dprc-driver.c b/drivers/staging/fsl-mc/bus/dprc-driver.c index 9380ebc9f06f..31488a7b9e86 100644 --- a/drivers/staging/fsl-mc/bus/dprc-driver.c +++ b/drivers/staging/fsl-mc/bus/dprc-driver.c @@ -407,7 +407,7 @@ static irqreturn_t dprc_irq0_handler_thread(int irq_num, void *arg) { int error; u32 status; - struct device *dev = (struct device *)arg; + struct device *dev = arg; struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); struct fsl_mc_bus *mc_bus = to_fsl_mc_bus(mc_dev); struct fsl_mc_io *mc_io = mc_dev->mc_io;