mirror of
https://github.com/wessel-novacustom/clevo-keyboard.git
synced 2024-11-14 19:24:00 +01:00
Fix retry logic
This commit is contained in:
parent
3d7d74a565
commit
e1d1e1349a
|
@ -111,10 +111,10 @@ 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;
|
||||
|
|
Loading…
Reference in a new issue