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:
@@ -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
|
||||
|
Reference in New Issue
Block a user