Skip to content

Commit cea883b

Browse files
committed
Merge branch 'phy_checkpatch'
Florian Fainelli says: ==================== net: phy: fix checkpatch errors This patchset fixes trivial checkpatch errors, no functional change introduced. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
2 parents a58f7f8 + 7aff967 commit cea883b

File tree

10 files changed

+153
-153
lines changed

10 files changed

+153
-153
lines changed

drivers/net/phy/cicada.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ static int cis820x_config_intr(struct phy_device *phydev)
9292
{
9393
int err;
9494

95-
if(phydev->interrupts == PHY_INTERRUPT_ENABLED)
96-
err = phy_write(phydev, MII_CIS8201_IMASK,
95+
if (phydev->interrupts == PHY_INTERRUPT_ENABLED)
96+
err = phy_write(phydev, MII_CIS8201_IMASK,
9797
MII_CIS8201_IMASK_MASK);
9898
else
9999
err = phy_write(phydev, MII_CIS8201_IMASK, 0);

drivers/net/phy/davicom.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ static int dm9161_config_intr(struct phy_device *phydev)
7272
if (temp < 0)
7373
return temp;
7474

75-
if(PHY_INTERRUPT_ENABLED == phydev->interrupts )
75+
if (PHY_INTERRUPT_ENABLED == phydev->interrupts)
7676
temp &= ~(MII_DM9161_INTR_STOP);
7777
else
7878
temp |= MII_DM9161_INTR_STOP;

drivers/net/phy/dp83640.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -851,8 +851,8 @@ static int match(struct sk_buff *skb, unsigned int type, struct rxts *rxts)
851851

852852
seqid = (u16 *)(data + offset + OFF_PTP_SEQUENCE_ID);
853853

854-
return (rxts->msgtype == (*msgtype & 0xf) &&
855-
rxts->seqid == ntohs(*seqid));
854+
return rxts->msgtype == (*msgtype & 0xf) &&
855+
rxts->seqid == ntohs(*seqid);
856856
}
857857

858858
static void dp83640_free_clocks(void)

drivers/net/phy/icplus.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ MODULE_LICENSE("GPL");
4848
static int ip175c_config_init(struct phy_device *phydev)
4949
{
5050
int err, i;
51-
static int full_reset_performed = 0;
51+
static int full_reset_performed;
5252

5353
if (full_reset_performed == 0) {
5454

drivers/net/phy/lxt.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ static int lxt970_config_intr(struct phy_device *phydev)
8282
{
8383
int err;
8484

85-
if(phydev->interrupts == PHY_INTERRUPT_ENABLED)
85+
if (phydev->interrupts == PHY_INTERRUPT_ENABLED)
8686
err = phy_write(phydev, MII_LXT970_IER, MII_LXT970_IER_IEN);
8787
else
8888
err = phy_write(phydev, MII_LXT970_IER, 0);
@@ -114,7 +114,7 @@ static int lxt971_config_intr(struct phy_device *phydev)
114114
{
115115
int err;
116116

117-
if(phydev->interrupts == PHY_INTERRUPT_ENABLED)
117+
if (phydev->interrupts == PHY_INTERRUPT_ENABLED)
118118
err = phy_write(phydev, MII_LXT971_IER, MII_LXT971_IER_IEN);
119119
else
120120
err = phy_write(phydev, MII_LXT971_IER, 0);

drivers/net/phy/mdio_bus.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,8 @@ static int mdio_bus_match(struct device *dev, struct device_driver *drv)
316316
if (phydrv->match_phy_device)
317317
return phydrv->match_phy_device(phydev);
318318

319-
return ((phydrv->phy_id & phydrv->phy_id_mask) ==
320-
(phydev->phy_id & phydrv->phy_id_mask));
319+
return (phydrv->phy_id & phydrv->phy_id_mask) ==
320+
(phydev->phy_id & phydrv->phy_id_mask);
321321
}
322322

323323
#ifdef CONFIG_PM

drivers/net/phy/micrel.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,14 @@ static int ksz_config_flags(struct phy_device *phydev)
8181
}
8282

8383
static int kszphy_extended_write(struct phy_device *phydev,
84-
u32 regnum, u16 val)
84+
u32 regnum, u16 val)
8585
{
8686
phy_write(phydev, MII_KSZPHY_EXTREG, KSZPHY_EXTREG_WRITE | regnum);
8787
return phy_write(phydev, MII_KSZPHY_EXTREG_WRITE, val);
8888
}
8989

9090
static int kszphy_extended_read(struct phy_device *phydev,
91-
u32 regnum)
91+
u32 regnum)
9292
{
9393
phy_write(phydev, MII_KSZPHY_EXTREG, regnum);
9494
return phy_read(phydev, MII_KSZPHY_EXTREG_READ);

0 commit comments

Comments
 (0)