Skip to content

Commit f9ff2b7

Browse files
committed
net: macb: move pm_exit label at the end of function
Move pm_exit label at the end of function. This is to prepare the field for the next commit. Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
1 parent ee268a3 commit f9ff2b7

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

drivers/net/ethernet/cadence/macb_main.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2507,12 +2507,12 @@ static int macb_open(struct net_device *dev)
25072507
if (bp->ptp_info)
25082508
bp->ptp_info->ptp_init(dev);
25092509

2510-
pm_exit:
2511-
if (err) {
2512-
pm_runtime_put_sync(&bp->pdev->dev);
2513-
return err;
2514-
}
25152510
return 0;
2511+
2512+
pm_exit:
2513+
pm_runtime_put_sync(&bp->pdev->dev);
2514+
2515+
return err;
25162516
}
25172517

25182518
static int macb_close(struct net_device *dev)

0 commit comments

Comments
 (0)