diff options
author | Tang Bin <tangbin@cmss.chinamobile.com> | 2020-04-30 14:15:31 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-04-30 21:20:54 +0200 |
commit | 1569a3c44303834680e93df2ecf60f356be9b322 (patch) | |
tree | ebdc263ff85bee66aa62fdebe0b8f2c29b5c67d6 /drivers/net/ethernet/faraday/ftmac100.c | |
parent | rionet: Fix use correct return type for ndo_start_xmit() (diff) | |
download | linux-1569a3c44303834680e93df2ecf60f356be9b322.tar.xz linux-1569a3c44303834680e93df2ecf60f356be9b322.zip |
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: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/faraday/ftmac100.c')
-rw-r--r-- | drivers/net/ethernet/faraday/ftmac100.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/ethernet/faraday/ftmac100.c b/drivers/net/ethernet/faraday/ftmac100.c index 32cf54f0e35b..473b337b2e3b 100644 --- a/drivers/net/ethernet/faraday/ftmac100.c +++ b/drivers/net/ethernet/faraday/ftmac100.c @@ -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; |