diff options
| author | Jingoo Han <[email protected]> | 2013-09-09 05:15:52 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2013-09-26 15:53:23 +0000 |
| commit | bbf831dfe8538ef3797c9603b7897d4ad9ef9d4a (patch) | |
| tree | 974a8a30035c881b3c9875341de3ccf48f316f22 /drivers/misc/ibmasm/module.c | |
| parent | char: xilinx_hwicap: Remove casting the return value which is a void pointer (diff) | |
| download | kernel-bbf831dfe8538ef3797c9603b7897d4ad9ef9d4a.tar.gz kernel-bbf831dfe8538ef3797c9603b7897d4ad9ef9d4a.zip | |
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.
Signed-off-by: Jingoo Han <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/misc/ibmasm/module.c')
| -rw-r--r-- | drivers/misc/ibmasm/module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/ibmasm/module.c b/drivers/misc/ibmasm/module.c index 0346d87c5fed..0c290e40ce06 100644 --- a/drivers/misc/ibmasm/module.c +++ b/drivers/misc/ibmasm/module.c @@ -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); |
