mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-31 18:15:20 +00:00
arch: Use if-let notation
To keep updated clippy happy. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
df2516f229
commit
ff1cb11946
@ -146,8 +146,8 @@ pub fn configure_system(
|
|||||||
|
|
||||||
let mut params: BootParamsWrapper = BootParamsWrapper(boot_params::default());
|
let mut params: BootParamsWrapper = BootParamsWrapper(boot_params::default());
|
||||||
|
|
||||||
if setup_hdr.is_some() {
|
if let Some(hdr) = setup_hdr {
|
||||||
params.0.hdr = setup_hdr.unwrap();
|
params.0.hdr = hdr;
|
||||||
params.0.hdr.cmd_line_ptr = cmdline_addr.raw_value() as u32;
|
params.0.hdr.cmd_line_ptr = cmdline_addr.raw_value() as u32;
|
||||||
params.0.hdr.cmdline_size = cmdline_size as u32;
|
params.0.hdr.cmdline_size = cmdline_size as u32;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user