OSDN Git Service

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)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Jan 2019 01:44:57 +0000 (17:44 -0800)
commit17b42a20d7ca59377788c6a2409e77569570cc10
tree7385866f2eb5edd4efd62ce2e7853fe363a5baac
parent5d9bf43357d5b0ef386bcaa2cafb94898364ff7d
net: altera_tse: fix connect_local_phy error path

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>
drivers/net/ethernet/altera/altera_tse_main.c