From c67c71b4e8cf9cffc66b0a12f93b1c6b9cc1ea4f Mon Sep 17 00:00:00 2001 From: Jingoo Han Date: Tue, 3 Sep 2013 08:54:04 +0900 Subject: [PATCH] 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 --- drivers/net/ethernet/netx-eth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- 2.30.2