mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: fix return value of mt76x02_wait_for_mac
We need to return bool value in mt76x02_wait_for_mac. Reported-by: Dan Carpenter <[email protected]> Fixes: 2735a6dd7df3 ("mt76: unify wait_for_mac") Signed-off-by: Stanislaw Gruszka <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
ebca136dbd
commit
cf8f750600
+1
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user