mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 10:37:22 +00:00
hpm: Minor refactoring
Remove an `if()` with a condition that is always true. Merge two calls to time() into one.
This commit is contained in:
parent
272d9d0d9b
commit
4631d3f942
@ -2291,13 +2291,9 @@ HpmfwupgWaitLongDurationCmd(struct ipmi_intf *intf,
|
||||
}
|
||||
}
|
||||
}
|
||||
if (rc == HPMFWUPG_SUCCESS) {
|
||||
/* Poll upgrade status until completion or timeout*/
|
||||
timeoutSec1 = time(NULL);
|
||||
timeoutSec2 = time(NULL);
|
||||
rc = HpmfwupgGetUpgradeStatus(intf, &upgStatusCmd,
|
||||
pFwupgCtx, 1);
|
||||
}
|
||||
/* Poll upgrade status until completion or timeout*/
|
||||
timeoutSec2 = timeoutSec1 = time(NULL);
|
||||
rc = HpmfwupgGetUpgradeStatus(intf, &upgStatusCmd, pFwupgCtx, 1);
|
||||
while (
|
||||
/* With KCS: Cover the case where we sometime
|
||||
* receive d5 (on the first get status) from
|
||||
|
Loading…
x
Reference in New Issue
Block a user