sfc: Avoid mangling error codes in efx_test_loopback()
authorBen Hutchings <bhutchings@solarflare.com>
Mon, 1 Sep 2008 11:45:08 +0000 (12:45 +0100)
committerJeff Garzik <jgarzik@redhat.com>
Wed, 3 Sep 2008 13:53:42 +0000 (09:53 -0400)
commita0c2c19093bb326ecce4231e558f92e1e7985e37
tree432ca30ec11605908bfd7449c1b53e6fb5f09ac1
parent60ac10658c2e234cf7bc27e0930e324c6c6fcf61
sfc: Avoid mangling error codes in efx_test_loopback()

efx_test_loopback() used "|" to combine the results of the RX and TX
phases.  If both phases fail with different error codes, this results
in a bogus error code.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/sfc/selftest.c