mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 23:58:05 +00:00
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 <sergei.shtylyov@cogentembedded.com> Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
069281d184
commit
c67c71b4e8
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue