Skip to content

Commit

Permalink
net: macb: Fix minor formatting issues
Browse files Browse the repository at this point in the history
Fix indentation for one line in macb_resume.
Remove double semicolon in macb_mii_init.

Signed-off-by: Harini Katakam <[email protected]>
  • Loading branch information
harini-katakam authored and Michal Simek committed Jan 10, 2022
1 parent f48c6dd commit f85361d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/ethernet/cadence/macb_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,7 @@ static int macb_mii_init(struct macb *bp)

dev_set_drvdata(&bp->dev->dev, bp->mii_bus);

np = bp->pdev->dev.of_node;;
np = bp->pdev->dev.of_node;
mdio_np = of_get_child_by_name(np, "mdio");
if (mdio_np) {
of_node_put(mdio_np);
Expand Down Expand Up @@ -5006,7 +5006,7 @@ static int __maybe_unused macb_resume(struct device *dev)

if (device_may_wakeup(&bp->dev->dev)) {
spin_lock_irqsave(&bp->lock, flags);
macb_writel(bp, IDR, MACB_BIT(WOL));
macb_writel(bp, IDR, MACB_BIT(WOL));
gem_writel(bp, WOL, 0);
/* Clear Q0 ISR as WOL was enabled on Q0 */
if (bp->caps & MACB_CAPS_ISR_CLEAR_ON_WRITE)
Expand Down

0 comments on commit f85361d

Please sign in to comment.