summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarol Herbst <kherbst@redhat.com>2024-01-24 13:04:35 +0100
committerMarge Bot <emma+marge@anholt.net>2024-01-24 17:46:29 +0000
commit06ff342ee1bd92a0b2d1f9ddc9f3142dcc544416 (patch)
tree86a18eb78ccbc86bf3f1dc1aa76a5268b53e74c8
parent4b039abd7b1d1e30ba5e31104ca20fc48ec583d5 (diff)
nak: fix clippy::needless_return warnings
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27234>
-rw-r--r--src/nouveau/compiler/nak/opt_jump_thread.rs2
-rw-r--r--src/nouveau/compiler/nak/opt_lop.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/nouveau/compiler/nak/opt_jump_thread.rs b/src/nouveau/compiler/nak/opt_jump_thread.rs
index bc0a6025afe..ee6bd995d43 100644
--- a/src/nouveau/compiler/nak/opt_jump_thread.rs
+++ b/src/nouveau/compiler/nak/opt_jump_thread.rs
@@ -86,7 +86,7 @@ fn jump_thread(func: &mut Function) -> bool {
rewrite_cfg(func);
}
- return progress;
+ progress
}
fn rewrite_cfg(func: &mut Function) {
diff --git a/src/nouveau/compiler/nak/opt_lop.rs b/src/nouveau/compiler/nak/opt_lop.rs
index 2192c7fde26..706109bde01 100644
--- a/src/nouveau/compiler/nak/opt_lop.rs
+++ b/src/nouveau/compiler/nak/opt_lop.rs
@@ -22,7 +22,7 @@ fn src_as_bool(src: &Src) -> Option<bool> {
match src.src_ref {
SrcRef::Zero | SrcRef::False | SrcRef::Imm32(0) => Some(false),
SrcRef::True | SrcRef::Imm32(u32::MAX) => Some(true),
- _ => return None,
+ _ => None,
}
}