qemu-rust
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 05/10] rust: pl011: pull interrupt updates out of read/write


From: Paolo Bonzini
Subject: Re: [PATCH 05/10] rust: pl011: pull interrupt updates out of read/write ops
Date: Wed, 22 Jan 2025 17:49:23 +0100



Il mer 22 gen 2025, 17:31 Zhao Liu <zhao1.liu@intel.com> ha scritto:
>          if event == bindings::QEMUChrEvent::CHR_EVENT_BREAK && !self.loopback_enabled() {
> -            self.put_fifo(registers::Data::BREAK.into());
> +            let update = self.put_fifo(registers::Data::BREAK.into());

We can omit this `update` variable.

Indeed, but sometimes I left it because of long lines or to clarify the meaning of the "bool" (or both).

Paolo

Reviewed-by: Zhao Liu <zhao.liu@intel.com>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]