devices: fix a clippy warning

Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
Wei Liu 2022-08-09 16:33:49 +00:00 committed by Liu Wei
parent ac0aa8aa5e
commit f42c6d567d

View File

@ -372,7 +372,7 @@ impl BusDevice for Pl011 {
UARTIFLS => self.ifl,
UARTIMSC => self.int_enabled,
UARTRIS => self.int_level,
UARTMIS => (self.int_level & self.int_enabled),
UARTMIS => self.int_level & self.int_enabled,
UARTDMACR => self.dmacr,
UARTDEBUG => self.debug,
_ => {