aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/chelsio/mv88e1xxx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/chelsio/mv88e1xxx.c')
-rw-r--r--drivers/net/chelsio/mv88e1xxx.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/chelsio/mv88e1xxx.c b/drivers/net/chelsio/mv88e1xxx.c
index 28ac93ff7c4f..75fac85a55b5 100644
--- a/drivers/net/chelsio/mv88e1xxx.c
+++ b/drivers/net/chelsio/mv88e1xxx.c
@@ -308,7 +308,8 @@ static int mv88e1xxx_interrupt_handler(struct cphy *cphy)
308 MV88E1XXX_INTERRUPT_STATUS_REGISTER, 308 MV88E1XXX_INTERRUPT_STATUS_REGISTER,
309 &cause); 309 &cause);
310 cause &= INTR_ENABLE_MASK; 310 cause &= INTR_ENABLE_MASK;
311 if (!cause) break; 311 if (!cause)
312 break;
312 313
313 if (cause & MV88E1XXX_INTR_LINK_CHNG) { 314 if (cause & MV88E1XXX_INTR_LINK_CHNG) {
314 (void) simple_mdio_read(cphy, 315 (void) simple_mdio_read(cphy,
@@ -360,7 +361,8 @@ static struct cphy *mv88e1xxx_phy_create(adapter_t *adapter, int phy_addr,
360{ 361{
361 struct cphy *cphy = kzalloc(sizeof(*cphy), GFP_KERNEL); 362 struct cphy *cphy = kzalloc(sizeof(*cphy), GFP_KERNEL);
362 363
363 if (!cphy) return NULL; 364 if (!cphy)
365 return NULL;
364 366
365 cphy_init(cphy, adapter, phy_addr, &mv88e1xxx_ops, mdio_ops); 367 cphy_init(cphy, adapter, phy_addr, &mv88e1xxx_ops, mdio_ops);
366 368