summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortangbin <tangbin@cmss.chinamobile.com>2020-03-11 10:05:37 +0800
committerDavid S. Miller <davem@davemloft.net>2020-03-11 13:38:19 -0700
commit86eeb97de71018695e9dc9e1f96df7b33cb0e7d6 (patch)
tree96968452094a612dca4417c35f37255e960d9703
parent96ee187badb743a848d42cac8178e16c47bd230a (diff)
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: tangbin <tangbin@cmss.chinamobile.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/faraday/ftgmac100.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/ethernet/faraday/ftgmac100.c b/drivers/net/ethernet/faraday/ftgmac100.c
index 71a7709f7cc8..835b7816e372 100644
--- a/drivers/net/ethernet/faraday/ftgmac100.c
+++ b/drivers/net/ethernet/faraday/ftgmac100.c
@@ -1755,9 +1755,6 @@ static int ftgmac100_probe(struct platform_device *pdev)
struct device_node *np;
int err = 0;
- if (!pdev)
- return -ENODEV;
-
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
if (!res)
return -ENXIO;