net: phy: marvell10g: fix return value on error
authorBaruch Siach <baruch.siach@siklu.com>
Mon, 25 Apr 2022 06:27:38 +0000 (09:27 +0300)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 26 Apr 2022 09:46:18 +0000 (11:46 +0200)
commit0ed9704b660b259b54743cad8a84a11148f60f0a
tree42d39aead136155b5c128a42073087416d4c6d04
parentacac0541d1d65e81e599ec399d34d184d2424401
net: phy: marvell10g: fix return value on error

Return back the error value that we get from phy_read_mmd().

Fixes: c84786fa8f91 ("net: phy: marvell10g: read copper results from CSSR1")
Signed-off-by: Baruch Siach <baruch.siach@siklu.com>
Reviewed-by: Marek BehĂșn <kabel@kernel.org>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://lore.kernel.org/r/f47cb031aeae873bb008ba35001607304a171a20.1650868058.git.baruch@tkos.co.il
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/phy/marvell10g.c