Skip to content

Commit 1569a3c

Browse files
Tang Bindavem330
authored andcommitted
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 <[email protected]> Signed-off-by: Tang Bin <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 51070a3 commit 1569a3c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/net/ethernet/faraday/ftmac100.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,9 +1057,6 @@ static int ftmac100_probe(struct platform_device *pdev)
10571057
struct ftmac100 *priv;
10581058
int err;
10591059

1060-
if (!pdev)
1061-
return -ENODEV;
1062-
10631060
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
10641061
if (!res)
10651062
return -ENXIO;

0 commit comments

Comments
 (0)