nak: fix clippy::if_same_then_else error

Fixes: 9321a785cf ("nak: Implement Foldable for OpShf")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30323>
This commit is contained in:
Karol Herbst
2024-07-23 13:24:56 +02:00
committed by Marge Bot
parent 526a572233
commit 3b6867f53a

View File

@@ -3673,9 +3673,7 @@ impl Foldable for OpShf {
}
};
let dst = if sm.sm() < 70 && !self.right {
(shifted >> 32) as u32
} else if self.dst_high {
let dst = if (sm.sm() < 70 && !self.right) || self.dst_high {
(shifted >> 32) as u32
} else {
shifted as u32