net: 3com: typhoon: typhoon_init_one: make return values more specific
authorThomas Preisner <thomas.preisner+linux@fau.de>
Fri, 30 Dec 2016 02:37:54 +0000 (03:37 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Nov 2017 08:35:54 +0000 (08:35 +0000)
commitcbbe150dd94043f94461be5b5f1aa08e1f618c58
treebc5f7853b140c5a9b958c7826f2ad97a1ed0ebd9
parent09101462f7b7263b745bebdf9bfbeaaefbf71c22
net: 3com: typhoon: typhoon_init_one: make return values more specific

[ Upstream commit 6b6bbb5922a4b1d4b58125a572da91010295fba3 ]

In some cases the return value of a failing function is not being used
and the function typhoon_init_one() returns another negative error code
instead.

Signed-off-by: Thomas Preisner <thomas.preisner+linux@fau.de>
Signed-off-by: Milan Stephan <milan.stephan+linux@fau.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/3com/typhoon.c