projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
069281d
)
net: netx-eth: remove unnecessary casting
author
Jingoo Han
<
[email protected]
>
Mon, 2 Sep 2013 23:54:04 +0000
(08:54 +0900)
committer
David S. Miller
<
[email protected]
>
Wed, 4 Sep 2013 04:27:27 +0000
(
00:27
-0400)
Casting from 'void *' is unnecessary, because casting from 'void *'
to any pointer type is automatic.
Reported-by: Sergei Shtylyov <
[email protected]
>
Signed-off-by: Jingoo Han <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/netx-eth.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/netx-eth.c
b/drivers/net/ethernet/netx-eth.c
index 235fd51100aabc18c477e1e1893e592c8e383765..e6f0a4366f905796777aac8fd1e006b177b83bfc 100644
(file)
--- 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");