Skip to content

Commit

Permalink
efi: Remove useless assignment
Browse files Browse the repository at this point in the history
This variable will be immediately overwritten later in this function.

Signed-off-by: Jianyong Wu <[email protected]>
  • Loading branch information
jongwu authored and retrage committed Jul 21, 2023
1 parent 2e0975f commit 40d07f3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/efi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,6 @@ pub extern "efiapi" fn install_configuration_table(guid: *mut Guid, table: *mut

for entry in ct.iter_mut() {
if entry.vendor_guid == unsafe { *guid } {
entry.vendor_table = table;
if table.is_null() {
entry.vendor_guid = INVALID_GUID;
entry.vendor_table = null_mut();
Expand Down

0 comments on commit 40d07f3

Please sign in to comment.