From: Jingoo Han Date: Mon, 9 Sep 2013 05:56:07 +0000 (-0300) Subject: upstream: [media] ddbridge: Remove casting the return value which is a void pointer X-Git-Tag: submit/tizen/20141121.110247~1783 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=51a3b43c5eaf86801fc3e899949fd3b372683fcf;p=platform%2Fkernel%2Flinux-3.10.git upstream: [media] ddbridge: 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 Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/pci/ddbridge/ddbridge-core.c b/drivers/media/pci/ddbridge/ddbridge-core.c index 36e3452..9375f30 100644 --- a/drivers/media/pci/ddbridge/ddbridge-core.c +++ b/drivers/media/pci/ddbridge/ddbridge-core.c @@ -1544,7 +1544,7 @@ static void ddb_unmap(struct ddb *dev) static void ddb_remove(struct pci_dev *pdev) { - struct ddb *dev = (struct ddb *) pci_get_drvdata(pdev); + struct ddb *dev = pci_get_drvdata(pdev); ddb_ports_detach(dev); ddb_i2c_release(dev);