DIRECT SENDER IS HERE LETS DEAL. JENS EBERHARD
MT103/202 DIRECT WIRE TRANSFER PAYPAL TRANSFER CASHAPP TRANSFER ZELLE TRANSFER TRANSFER WISE WESTERN UNION TRANSFER BITCOIN FLASHING BANK ACCOUNT LOADING/FLASHING IBAN TO IBAN TRANSFER MONEYGRAM TRANSFER SLBC PROVIDER CREDIT CARD TOP UP SEPA TRANSFER WIRE TRANSFER GLOBALPAY INC US Thanks. NOTE; ONLY SERIOUS / RELIABLE RECEIVERS CAN CONTACT. DM ME ON WHATSAPP FOR A SERIOUS DEAL. +447405129573 On Thursday 19 October 2023 at 10:36:32 UTC-7 Jan Kiszka wrote: > From: Jan Kiszka <[email protected]> > > Moving the test to the end avoids the need to initialize timerstatus. > And it also no longer confuses cppcheck 2.10. > > Signed-off-by: Jan Kiszka <[email protected]> > --- > drivers/watchdog/ipmi_wdt.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/watchdog/ipmi_wdt.c b/drivers/watchdog/ipmi_wdt.c > index f67100d..55d9623 100644 > --- a/drivers/watchdog/ipmi_wdt.c > +++ b/drivers/watchdog/ipmi_wdt.c > @@ -132,7 +132,7 @@ handle_ipmi_error(UINT16 io_base) > static EFI_STATUS > send_ipmi_cmd(UINT16 io_base, UINT8 cmd, UINT8 *data, UINTN datalen) > { > - EFI_STATUS timerstatus = EFI_NOT_READY; > + EFI_STATUS timerstatus; > EFI_STATUS status; > > /* > @@ -141,13 +141,13 @@ send_ipmi_cmd(UINT16 io_base, UINT8 cmd, UINT8 > *data, UINTN datalen) > */ > BS->SetTimer(cmdtimer, TimerRelative, 50000000); > > - while (timerstatus == EFI_NOT_READY) { > + do { > status = _send_ipmi_cmd(io_base, cmd, data, datalen); > if (status == EFI_SUCCESS) > return status; > handle_ipmi_error(io_base); > timerstatus = BS->CheckEvent(cmdtimer); > - } > + } while (timerstatus == EFI_NOT_READY); > > return status; > } > -- > 2.35.3 > > -- You received this message because you are subscribed to the Google Groups "EFI Boot Guard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/efibootguard-dev/3ace4ea7-5e15-4a57-9a39-59b9c95032dbn%40googlegroups.com.
