Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2cf5ac31 authored by Stanislaw Gruszka's avatar Stanislaw Gruszka Committed by Felix Fietkau
Browse files

mt76: fix return value of mt76x02_wait_for_mac



We need to return bool value in mt76x02_wait_for_mac.

Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Fixes: 2735a6dd ("mt76: unify wait_for_mac")
Signed-off-by: default avatarStanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent 09dbcd8b
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -165,7 +165,7 @@ static inline bool mt76x02_wait_for_mac(struct mt76_dev *dev)


	for (i = 0; i < 500; i++) {
	for (i = 0; i < 500; i++) {
		if (test_bit(MT76_REMOVED, &dev->state))
		if (test_bit(MT76_REMOVED, &dev->state))
			return -EIO;
			return false;


		switch (dev->bus->rr(dev, MAC_CSR0)) {
		switch (dev->bus->rr(dev, MAC_CSR0)) {
		case 0:
		case 0: