Skip to content

Commit 578f393

Browse files
lzrdmkeeter
andauthored
Update drv/lpc55-update-server/src/main.rs
Co-authored-by: Matt Keeter <[email protected]>
1 parent e74fe24 commit 578f393

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

drv/lpc55-update-server/src/main.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -524,10 +524,8 @@ impl idl::InOrderUpdateImpl for ServerImpl<'_> {
524524
self.boot_preferences()?;
525525

526526
// The transient preference must not select the update target.
527-
if let Some(pref) = transient {
528-
if slot == pref {
529-
return Err(UpdateError::InvalidPreferredSlotId.into());
530-
}
527+
if transient == Some(pref) {
528+
return Err(UpdateError::InvalidPreferredSlotId.into());
531529
}
532530
// If there is a pending persistent preference, it must
533531
// not select the update target.

0 commit comments

Comments
 (0)