atl1e: checking the status of atl1e_write_phy_reg
authorKangjie Lu <kjlu@umn.edu>
Wed, 26 Dec 2018 04:23:19 +0000 (22:23 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2019 14:37:50 +0000 (15:37 +0100)
commita4bc476bd09e09d8f854dd8b7dcb60cb0c4dfafe
tree04544094b42ae0207b3d60a88a46ce45e48ab83d
parent04e35269d5d34ad5e4e13105048c77b872438e02
atl1e: checking the status of atl1e_write_phy_reg

[ Upstream commit ff07d48d7bc0974d4f96a85a4df14564fb09f1ef ]

atl1e_write_phy_reg() could fail. The fix issues an error message when
it fails.

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/ethernet/atheros/atl1e/atl1e_main.c