From: Jingoo Han Date: Mon, 9 Sep 2013 05:55:14 +0000 (-0300) Subject: [media] ngene: Remove casting the return value which is a void pointer X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0e7e4d26cf3437bf3510e98e3c6d05b422a6943a;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git [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 Signed-off-by: Mauro Carvalho Chehab --- 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;