From cf8f75060080d8e0327a2d864160a29f739887e7 Mon Sep 17 00:00:00 2001 From: Stanislaw Gruszka Date: Thu, 6 Sep 2018 11:38:34 +0200 Subject: [PATCH] mt76: fix return value of mt76x02_wait_for_mac We need to return bool value in mt76x02_wait_for_mac. Reported-by: Dan Carpenter Fixes: 2735a6dd7df3 ("mt76: unify wait_for_mac") Signed-off-by: Stanislaw Gruszka Signed-off-by: Felix Fietkau --- mt76x02_mac.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mt76x02_mac.h b/mt76x02_mac.h index f12ecbe1..62072291 100644 --- a/mt76x02_mac.h +++ b/mt76x02_mac.h @@ -165,7 +165,7 @@ static inline bool mt76x02_wait_for_mac(struct mt76_dev *dev) for (i = 0; i < 500; i++) { if (test_bit(MT76_REMOVED, &dev->state)) - return -EIO; + return false; switch (dev->bus->rr(dev, MAC_CSR0)) { case 0: