]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: altera_tse: fix connect_local_phy error path
authorAtsushi Nemoto <atsushi.nemoto@sord.co.jp>
Mon, 21 Jan 2019 08:26:41 +0000 (17:26 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Mar 2019 16:58:01 +0000 (17:58 +0100)
commitaa83556a6f0f79ef44c49aa1998962ac8c5792d5
tree49235ce0974dcf30ae8611606573ba00dde878a2
parent111b62c6b61e2bf5777147deb2e973b46a2ae3ed
net: altera_tse: fix connect_local_phy error path

[ Upstream commit 17b42a20d7ca59377788c6a2409e77569570cc10 ]

The connect_local_phy should return NULL (not negative errno) on
error, since its caller expects it.

Signed-off-by: Atsushi Nemoto <atsushi.nemoto@sord.co.jp>
Acked-by: Thor Thayer <thor.thayer@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/altera/altera_tse_main.c