summaryrefslogtreecommitdiffstats
path: root/drivers/misc/ibmasm
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-09-09 07:15:52 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-09-26 17:53:23 +0200
commitbbf831dfe8538ef3797c9603b7897d4ad9ef9d4a (patch)
tree974a8a30035c881b3c9875341de3ccf48f316f22 /drivers/misc/ibmasm
parentchar: xilinx_hwicap: Remove casting the return value which is a void pointer (diff)
downloadlinux-bbf831dfe8538ef3797c9603b7897d4ad9ef9d4a.tar.xz
linux-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 <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.c2
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);