Commit 86eeb97d authored by tangbin's avatar tangbin Committed by David S. Miller

ftgmac100: Remove redundant judgement

In this function, ftgmac100_probe() can be triggered only
if the platform_device and platform_driver matches, so the
judgement at the beginning is redundant.
Signed-off-by: default avatartangbin <tangbin@cmss.chinamobile.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 96ee187b
...@@ -1755,9 +1755,6 @@ static int ftgmac100_probe(struct platform_device *pdev) ...@@ -1755,9 +1755,6 @@ static int ftgmac100_probe(struct platform_device *pdev)
struct device_node *np; struct device_node *np;
int err = 0; int err = 0;
if (!pdev)
return -ENODEV;
res = platform_get_resource(pdev, IORESOURCE_MEM, 0); res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
if (!res) if (!res)
return -ENXIO; return -ENXIO;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment