hypervisor: fix a clippy warning

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

View File

@ -51,7 +51,7 @@ fn get_limit(entry: u64) -> u32 {
// Perform manual limit scaling if G flag is set
match get_g(entry) {
0 => limit,
_ => ((limit << 12) | 0xFFF), // G flag is either 0 or 1
_ => (limit << 12) | 0xFFF, // G flag is either 0 or 1
}
}