From: Jingoo Han Date: Mon, 2 Sep 2013 23:54:04 +0000 (+0900) Subject: net: netx-eth: remove unnecessary casting X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c67c71b4e8cf9cffc66b0a12f93b1c6b9cc1ea4f;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git net: netx-eth: remove unnecessary casting Casting from 'void *' is unnecessary, because casting from 'void *' to any pointer type is automatic. Reported-by: Sergei Shtylyov Signed-off-by: Jingoo Han Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/netx-eth.c b/drivers/net/ethernet/netx-eth.c index 235fd51100aa..e6f0a4366f90 100644 --- a/drivers/net/ethernet/netx-eth.c +++ b/drivers/net/ethernet/netx-eth.c @@ -390,7 +390,7 @@ static int netx_eth_drv_probe(struct platform_device *pdev) priv = netdev_priv(ndev); - pdata = (struct netxeth_platform_data *)dev_get_platdata(&pdev->dev); + pdata = dev_get_platdata(&pdev->dev); priv->xc = request_xc(pdata->xcno, &pdev->dev); if (!priv->xc) { dev_err(&pdev->dev, "unable to request xc engine\n");