Fix retry logic

This commit is contained in:
Werner Sembach 2023-06-13 14:56:16 +02:00
parent 3d7d74a565
commit e1d1e1349a

View file

@ -111,11 +111,11 @@ int uniwill_read_ec_ram_with_retry(u16 address, u8 *data, int retries)
for (i = 0; i < retries; ++i) {
status = uniwill_read_ec_ram(address, data);
if (status != 0) {
if (status != 0)
pr_debug("uniwill_read_ec_ram(...) failed.\n");
else
break;
}
}
return status;
}