Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -2205,7 +2205,6 @@ static int ravb_probe(struct platform_device *pdev)
	if (chip_id != RCAR_GEN2)
		ravb_ptp_stop(ndev);
out_release:
	if (ndev)
	free_netdev(ndev);

	pm_runtime_put(&pdev->dev);
+1 −2
Original line number Diff line number Diff line
@@ -3282,7 +3282,6 @@ static int sh_eth_drv_probe(struct platform_device *pdev)

out_release:
	/* net_dev free */
	if (ndev)
	free_netdev(ndev);

	pm_runtime_put(&pdev->dev);