mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-19 09:04:57 +00:00
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>
This commit is contained in:
parent
96ee187bad
commit
86eeb97de7
1 changed files with 0 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue