OSDN Git Service

defxx: Fix DEFPA enable error propagation
authorMaciej W. Rozycki <macro@linux-mips.org>
Fri, 21 Nov 2014 14:09:52 +0000 (14:09 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Nov 2014 21:37:13 +0000 (16:37 -0500)
commita65da0c3dac6e2d4f8ecf0aee8b0abe10001f2d9
tree513dfdcd90b7cff6c2bb4d4a673490210d795e26
parent37dd9255b2f6201195946014600a8d857f846cf4
defxx: Fix DEFPA enable error propagation

Correctly propagate the error code from `pci_enable_device' if non zero.
Currently a failure of this function is correctly recognized and device
initialization abandoned, however a successful completion code returned.

Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/fddi/defxx.c