Remove redundant let binding (#6356)

This commit is contained in:
Elie Michel 2024-10-02 10:21:30 +02:00 committed by GitHub
parent 6db097694c
commit c9202ee54a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -437,13 +437,11 @@ impl Device {
.last_successful_submission_index
.load(Ordering::Acquire);
if let wgt::Maintain::WaitForSubmissionIndex(submission_index) = maintain {
if submission_index > last_successful_submission_index {
return Err(WaitIdleError::WrongSubmissionIndex(
submission_index,
last_successful_submission_index,
));
}
if submission_index > last_successful_submission_index {
return Err(WaitIdleError::WrongSubmissionIndex(
submission_index,
last_successful_submission_index,
));
}
submission_index