OSDN Git Service

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:37:26 +0000 (08:37 +0000)
commit609797646f9b1fbfa6817aec31ca1d0ea64efa19
tree4137b7181523c479672c786c0a1f68a7a96c1e22
parentd7c3d5333e39a3089ad259222b767a965963a693
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