rust: pl011: simplify handling of the FIFO enabled bit in LCR
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 4 Dec 2024 20:49:34 +0000 (21:49 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 19 Dec 2024 18:36:38 +0000 (19:36 +0100)
commitbf9987c06eb8274c2503174b944b8fbe94cc24d7
treea6523bac815244364687cb1dd11da2d440197293
parent6b4f7b0705be31c7df6ea01c81a42a42950959a9
rust: pl011: simplify handling of the FIFO enabled bit in LCR

Use ==/!= instead of going through bool and xor.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
rust/hw/char/pl011/src/device.rs
rust/hw/char/pl011/src/lib.rs