sfc: Fix check for failure of MC_CMD_FLUSH_RX_QUEUES
authorBen Hutchings <bhutchings@solarflare.com>
Tue, 11 Sep 2012 17:25:13 +0000 (18:25 +0100)
committerBen Hutchings <bhutchings@solarflare.com>
Sat, 1 Dec 2012 00:26:11 +0000 (00:26 +0000)
commitbbec969b7f57a6ab5683145b99da869f99080e2a
tree2474715e0ccabcd8cb0b5573b00e36a737d00cf9
parentb8e0251730775cc970d2453dedd454b8ae071dd9
sfc: Fix check for failure of MC_CMD_FLUSH_RX_QUEUES

efx_mcdi_rpc_start() returns a negative value on error or zero on
success.  However one caller that can't properly handle failure then
does WARN_ON(rc > 0).  Change it to WARN_ON(rc < 0).

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/ethernet/sfc/mcdi.c