diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-09-09 09:15:52 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-09-26 19:53:23 +0400 |
commit | bbf831dfe8538ef3797c9603b7897d4ad9ef9d4a (patch) | |
tree | 974a8a30035c881b3c9875341de3ccf48f316f22 /drivers/misc/ibmasm | |
parent | 20055477566958e751a20290aa45ae21bd4b5e11 (diff) | |
download | linux-bbf831dfe8538ef3797c9603b7897d4ad9ef9d4a.tar.xz |
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 <jg1.han@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/ibmasm')
-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); |