net: dsa: bcm_sf2: Propagate error value from mdio_write
authorKangjie Lu <kjlu@umn.edu>
Wed, 26 Dec 2018 04:08:18 +0000 (22:08 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2019 14:37:50 +0000 (15:37 +0100)
commit04e35269d5d34ad5e4e13105048c77b872438e02
treef14ec443d6742d12799476126276aa327c4d196a
parent2f2a742cea6d028c703f53fb57919c101e6aef12
net: dsa: bcm_sf2: Propagate error value from mdio_write

[ Upstream commit e49505f7255be8ced695919c08a29bf2c3d79616 ]

Both bcm_sf2_sw_indir_rw and mdiobus_write_nested could fail, so let's
return their error codes upstream.

Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/dsa/bcm_sf2.c