Skip to content

Commit 68cfe9a

Browse files
Colin Ian Kingdavem330
authored andcommitted
net: sis900: fix indentation issues, remove some spaces
There are several statements that contain extra spacing in the indentation; clean this up by removing spaces. Also add { } braces on if statement to keep to kernel coding style. Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 3d4c3ce commit 68cfe9a

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎drivers/net/ethernet/sis/sis900.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -730,18 +730,18 @@ static u16 sis900_default_phy(struct net_device * net_dev)
730730
status = mdio_read(net_dev, phy->phy_addr, MII_STATUS);
731731

732732
/* Link ON & Not select default PHY & not ghost PHY */
733-
if ((status & MII_STAT_LINK) && !default_phy &&
734-
(phy->phy_types != UNKNOWN))
735-
default_phy = phy;
736-
else {
733+
if ((status & MII_STAT_LINK) && !default_phy &&
734+
(phy->phy_types != UNKNOWN)) {
735+
default_phy = phy;
736+
} else {
737737
status = mdio_read(net_dev, phy->phy_addr, MII_CONTROL);
738738
mdio_write(net_dev, phy->phy_addr, MII_CONTROL,
739739
status | MII_CNTL_AUTO | MII_CNTL_ISOLATE);
740740
if (phy->phy_types == HOME)
741741
phy_home = phy;
742742
else if(phy->phy_types == LAN)
743743
phy_lan = phy;
744-
}
744+
}
745745
}
746746

747747
if (!default_phy && phy_home)

0 commit comments

Comments
 (0)