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

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
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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;