summaryrefslogtreecommitdiff
path: root/drivers/gpu/nova-core/bitfield.rs
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nova-core/bitfield.rs')
-rw-r--r--drivers/gpu/nova-core/bitfield.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nova-core/bitfield.rs b/drivers/gpu/nova-core/bitfield.rs
index 25579b4c328f..136de7289162 100644
--- a/drivers/gpu/nova-core/bitfield.rs
+++ b/drivers/gpu/nova-core/bitfield.rs
@@ -203,7 +203,7 @@ macro_rules! bitfield {
) => {
bitfield!(
@leaf_accessor $vis $name $storage, $hi:$lo $field
- { |f| <$into_type>::from(if f != 0 { true } else { false }) }
+ { |f| <$into_type>::from(f != 0) }
bool $into_type => $into_type $(, $comment)?;
);
};