mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-03-11 23:27:42 +07:00
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: David S. Miller <davem@davemloft.net>
This commit is contained in:
commit
d033a236bd
@ -2205,8 +2205,7 @@ static int ravb_probe(struct platform_device *pdev)
|
||||
if (chip_id != RCAR_GEN2)
|
||||
ravb_ptp_stop(ndev);
|
||||
out_release:
|
||||
if (ndev)
|
||||
free_netdev(ndev);
|
||||
free_netdev(ndev);
|
||||
|
||||
pm_runtime_put(&pdev->dev);
|
||||
pm_runtime_disable(&pdev->dev);
|
||||
|
@ -3282,8 +3282,7 @@ static int sh_eth_drv_probe(struct platform_device *pdev)
|
||||
|
||||
out_release:
|
||||
/* net_dev free */
|
||||
if (ndev)
|
||||
free_netdev(ndev);
|
||||
free_netdev(ndev);
|
||||
|
||||
pm_runtime_put(&pdev->dev);
|
||||
pm_runtime_disable(&pdev->dev);
|
||||
|
Loading…
Reference in New Issue
Block a user