OSDN Git Service

net: phy: dp83869: Fix return paths to return proper values
authorDan Murphy <dmurphy@ti.com>
Tue, 26 Nov 2019 14:38:56 +0000 (08:38 -0600)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Nov 2019 22:42:55 +0000 (14:42 -0800)
commit786c4a5372e11919b5ea010a7338bac9ef08c732
treea0fc9202aab91babf2fe4af61bcbd23eb5c012f4
parent7eb9d7675c08937cd11d32b0b40442d4d731c5ee
net: phy: dp83869: Fix return paths to return proper values

Fix the return paths for all I/O operations to ensure
that the I/O completed successfully.  Then pass the return
to the caller for further processing

Fixes: 01db923e8377 ("net: phy: dp83869: Add TI dp83869 phy")
Reported-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Dan Murphy <dmurphy@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/dp83869.c