diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2010-02-19 13:29:27 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-19 15:50:35 -0800 |
commit | e0bf54c93a15c365a37cfc4fe0137f5bc012d1b9 (patch) | |
tree | 0120f76a48010503a6f563a19d486504f35b1e70 /drivers/net/sfc | |
parent | b8afe6416101549e877f8470f2a160df69676166 (diff) | |
download | kernel_samsung_aries-e0bf54c93a15c365a37cfc4fe0137f5bc012d1b9.zip kernel_samsung_aries-e0bf54c93a15c365a37cfc4fe0137f5bc012d1b9.tar.gz kernel_samsung_aries-e0bf54c93a15c365a37cfc4fe0137f5bc012d1b9.tar.bz2 |
sfc: Fix sign of efx_mcdi_poll_reboot() error in efx_mcdi_poll()
efx_mcdi_poll() uses positive error numbers, matching the MCDI
protocol. It must negate the result of efx_mcdi_poll_reboot() which
returns the usual negative error numbers.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sfc')
-rw-r--r-- | drivers/net/sfc/mcdi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/sfc/mcdi.c b/drivers/net/sfc/mcdi.c index 9f035b9..f66b3da 100644 --- a/drivers/net/sfc/mcdi.c +++ b/drivers/net/sfc/mcdi.c @@ -127,7 +127,7 @@ static int efx_mcdi_poll(struct efx_nic *efx) efx_dword_t reg; /* Check for a reboot atomically with respect to efx_mcdi_copyout() */ - rc = efx_mcdi_poll_reboot(efx); + rc = -efx_mcdi_poll_reboot(efx); if (rc) goto out; |