[Intel-gfx] [PATCH 4/5] drm/i915/fixed: simplify is_fixed16_zero()
Jani Nikula
jani.nikula at intel.com
Thu Nov 15 12:01:25 UTC 2018
Simply return the condition. No functional changes.
Signed-off-by: Jani Nikula <jani.nikula at intel.com>
---
drivers/gpu/drm/i915/i915_fixed.h | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/i915/i915_fixed.h b/drivers/gpu/drm/i915/i915_fixed.h
index 927c59395569..524f1c95c4e1 100644
--- a/drivers/gpu/drm/i915/i915_fixed.h
+++ b/drivers/gpu/drm/i915/i915_fixed.h
@@ -11,9 +11,7 @@ typedef struct {
static inline bool is_fixed16_zero(uint_fixed_16_16_t val)
{
- if (val.val == 0)
- return true;
- return false;
+ return val.val == 0;
}
static inline uint_fixed_16_16_t u32_to_fixed16(u32 val)
--
2.11.0
More information about the Intel-gfx
mailing list