OSDN Git Service

sfc: Fix sign of efx_mcdi_poll_reboot() error in efx_mcdi_poll()
authorBen Hutchings <bhutchings@solarflare.com>
Fri, 19 Feb 2010 13:29:27 +0000 (13:29 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Feb 2010 23:50:35 +0000 (15:50 -0800)
commite0bf54c93a15c365a37cfc4fe0137f5bc012d1b9
tree0120f76a48010503a6f563a19d486504f35b1e70
parentb8afe6416101549e877f8470f2a160df69676166
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>
drivers/net/sfc/mcdi.c