summaryrefslogtreecommitdiffstats
path: root/drivers/media/pci/ngene
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-09-09 07:55:14 +0200
committerMauro Carvalho Chehab <m.chehab@samsung.com>2013-10-31 07:53:59 +0100
commit0e7e4d26cf3437bf3510e98e3c6d05b422a6943a (patch)
tree04f1e84fc7a7374113351442e8453c085e2b0a67 /drivers/media/pci/ngene
parent[media] dm1105: remove unneeded not-null test (diff)
downloadlinux-0e7e4d26cf3437bf3510e98e3c6d05b422a6943a.tar.xz
linux-0e7e4d26cf3437bf3510e98e3c6d05b422a6943a.zip
[media] ngene: 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: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/pci/ngene')
-rw-r--r--drivers/media/pci/ngene/ngene-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/ngene/ngene-core.c b/drivers/media/pci/ngene/ngene-core.c
index 8402ed6d886e..970e83308525 100644
--- a/drivers/media/pci/ngene/ngene-core.c
+++ b/drivers/media/pci/ngene/ngene-core.c
@@ -1622,7 +1622,7 @@ static void ngene_unlink(struct ngene *dev)
void ngene_shutdown(struct pci_dev *pdev)
{
- struct ngene *dev = (struct ngene *)pci_get_drvdata(pdev);
+ struct ngene *dev = pci_get_drvdata(pdev);
if (!dev || !shutdown_workaround)
return;