aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-09-09 01:55:14 -0400
committerMauro Carvalho Chehab <m.chehab@samsung.com>2013-10-31 02:53:59 -0400
commit0e7e4d26cf3437bf3510e98e3c6d05b422a6943a (patch)
tree04f1e84fc7a7374113351442e8453c085e2b0a67
parent0e48a3e8f616026195416e5d61c6cf24f686c2d8 (diff)
[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>
-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)
1622 1622
1623void ngene_shutdown(struct pci_dev *pdev) 1623void ngene_shutdown(struct pci_dev *pdev)
1624{ 1624{
1625 struct ngene *dev = (struct ngene *)pci_get_drvdata(pdev); 1625 struct ngene *dev = pci_get_drvdata(pdev);
1626 1626
1627 if (!dev || !shutdown_workaround) 1627 if (!dev || !shutdown_workaround)
1628 return; 1628 return;