Commit 1569a3c4 authored by Tang Bin's avatar Tang Bin Committed by David S. Miller
Browse files

net/faraday: Fix unnecessary check in ftmac100_probe()



The function ftmac100_probe() is only called with an openfirmware
platform device. Therefore there is no need to check that the passed
in device is NULL.

Signed-off-by: default avatarZhang Shengju <zhangshengju@cmss.chinamobile.com>
Signed-off-by: default avatarTang Bin <tangbin@cmss.chinamobile.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 51070a36
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -1057,9 +1057,6 @@ static int ftmac100_probe(struct platform_device *pdev)
	struct ftmac100 *priv;
	int err;

	if (!pdev)
		return -ENODEV;

	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
	if (!res)
		return -ENXIO;