fix(kms): early exit when iterating over crts
Clippy noted that this loop doesn't actually loop, so maybe this fixes some issues.
This commit is contained in:
parent
b6c5d00bec
commit
0a8da05847
1 changed files with 2 additions and 0 deletions
|
|
@ -797,7 +797,9 @@ impl KmsGuard<'_> {
|
||||||
break 'outer;
|
break 'outer;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if !new_pairings.contains_key(&conn) {
|
||||||
// test failed, we don't have a crtc for conn
|
// test failed, we don't have a crtc for conn
|
||||||
anyhow::bail!("Missing crtc for {conn:?}, gpu doesn't have enough resources.");
|
anyhow::bail!("Missing crtc for {conn:?}, gpu doesn't have enough resources.");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue