From: Stanislaw Gruszka Date: Mon, 13 Feb 2012 10:23:25 +0000 (+0100) Subject: iwlegacy: check correct il_poll_bit error value X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=586e45e31e50a9d0dda16349640b433eef002477;p=linux-beck.git iwlegacy: check correct il_poll_bit error value Signed-off-by: Stanislaw Gruszka Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/iwlegacy/common.c b/drivers/net/wireless/iwlegacy/common.c index f343f27e50af..d0d408e1b367 100644 --- a/drivers/net/wireless/iwlegacy/common.c +++ b/drivers/net/wireless/iwlegacy/common.c @@ -4136,7 +4136,7 @@ _il_apm_stop_master(struct il_priv *il) ret = _il_poll_bit(il, CSR_RESET, CSR_RESET_REG_FLAG_MASTER_DISABLED, CSR_RESET_REG_FLAG_MASTER_DISABLED, 100); - if (ret) + if (ret < 0) IL_WARN("Master Disable Timed Out, 100 usec\n"); D_INFO("stop master\n");