lkml.org 
[lkml]   [2021]   [Jun]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] net: phy: Simplify the return expression of dp83640_ack_interrupt
Date
From: dingsenjie <dingsenjie@yulong.com>

Simplify the return expression.

Signed-off-by: dingsenjie <dingsenjie@yulong.com>
---
drivers/net/phy/dp83640.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/drivers/net/phy/dp83640.c b/drivers/net/phy/dp83640.c
index 0d79f68..bcd14ec 100644
--- a/drivers/net/phy/dp83640.c
+++ b/drivers/net/phy/dp83640.c
@@ -1141,12 +1141,7 @@ static int dp83640_config_init(struct phy_device *phydev)

static int dp83640_ack_interrupt(struct phy_device *phydev)
{
- int err = phy_read(phydev, MII_DP83640_MISR);
-
- if (err < 0)
- return err;
-
- return 0;
+ return phy_read(phydev, MII_DP83640_MISR);
}

static int dp83640_config_intr(struct phy_device *phydev)
--
1.9.1

\
 
 \ /
  Last update: 2021-06-04 05:25    [W:0.447 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site