mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-10-03 20:15:45 +00:00
hypervisor: fix a clippy warning
Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
parent
f42c6d567d
commit
00c1b4a95b
@ -51,7 +51,7 @@ fn get_limit(entry: u64) -> u32 {
|
|||||||
// Perform manual limit scaling if G flag is set
|
// Perform manual limit scaling if G flag is set
|
||||||
match get_g(entry) {
|
match get_g(entry) {
|
||||||
0 => limit,
|
0 => limit,
|
||||||
_ => ((limit << 12) | 0xFFF), // G flag is either 0 or 1
|
_ => (limit << 12) | 0xFFF, // G flag is either 0 or 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user