Skip to contentSkip to conversation

char: xilinx_hwicap: Remove casting the return value which is a void pointer

PATCH New Jingoo Han 1 participant 1 message Sep 9, 2013

Subsystems (2)
lore
Share & tools
lore

Jingoo Han

author
#0 lore raw

PATCH 1/1 char: xilinx_hwicap: Remove casting the return value which is a void pointer

Casting the return value which is a void pointer is redundant. The conversion from void pointer to any other pointer type is guaranteed by the C programming language.

---
 drivers/char/xilinx_hwicap/xilinx_hwicap.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/char/xilinx_hwicap/xilinx_hwicap.c +1 -1
index 5224da5..a7f65c2 100644
@@ -721,7 +721,7 @@ static int hwicap_remove(struct device *dev)
 {
 	struct hwicap_drvdata *drvdata;
 
-	drvdata = (struct hwicap_drvdata *)dev_get_drvdata(dev);
+	drvdata = dev_get_drvdata(dev);
 
 	if (!drvdata)
 		return 0;
Signature · 1 line
1.7.10.4