Skip to contentSkip to conversation

misc: ibmasm: Remove casting the return value which is a void pointer

PATCH New Jingoo Han 1 participant 1 message Sep 9, 2013 Char and misc drivers

lore
Share & tools
lore

Jingoo Han

author
#0 lore raw

PATCH 1/1 misc: ibmasm: 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/misc/ibmasm/module.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/misc/ibmasm/module.c +1 -1
index 0346d87..0c290e4 100644
@@ -165,7 +165,7 @@ error_resources:
 
 static void ibmasm_remove_one(struct pci_dev *pdev)
 {
-	struct service_processor *sp = (struct service_processor *)pci_get_drvdata(pdev);
+	struct service_processor *sp = pci_get_drvdata(pdev);
 
 	dbg("Unregistering UART\n");
 	ibmasm_unregister_uart(sp);
Signature · 1 line
1.7.10.4