Commit d033a236 authored by David S. Miller's avatar David S. Miller

Merge branch 'net-Renesas-kill-redundant-checks'

Sergei Shtylyov says:

====================
Kill redundant checks in the Renesas Ethernet drivers

Here's a set of 2 patches against DaveM's 'net-next.git' repo removing
redundant checks in the driver probe() methods.
====================
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parents 72bca208 4282fc47
...@@ -2205,7 +2205,6 @@ static int ravb_probe(struct platform_device *pdev) ...@@ -2205,7 +2205,6 @@ static int ravb_probe(struct platform_device *pdev)
if (chip_id != RCAR_GEN2) if (chip_id != RCAR_GEN2)
ravb_ptp_stop(ndev); ravb_ptp_stop(ndev);
out_release: out_release:
if (ndev)
free_netdev(ndev); free_netdev(ndev);
pm_runtime_put(&pdev->dev); pm_runtime_put(&pdev->dev);
......
...@@ -3282,7 +3282,6 @@ static int sh_eth_drv_probe(struct platform_device *pdev) ...@@ -3282,7 +3282,6 @@ static int sh_eth_drv_probe(struct platform_device *pdev)
out_release: out_release:
/* net_dev free */ /* net_dev free */
if (ndev)
free_netdev(ndev); free_netdev(ndev);
pm_runtime_put(&pdev->dev); pm_runtime_put(&pdev->dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment