OSDN Git Service

misc: ibmasm: Remove casting the return value which is a void pointer
authorJingoo Han <jg1.han@samsung.com>
Mon, 9 Sep 2013 05:15:52 +0000 (14:15 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Sep 2013 15:53:23 +0000 (08:53 -0700)
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.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/ibmasm/module.c

index 0346d87..0c290e4 100644 (file)
@@ -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);