]> Git Repo - linux.git/commitdiff
drm/i915/fixed: simplify is_fixed16_zero()
authorJani Nikula <[email protected]>
Fri, 16 Nov 2018 12:07:28 +0000 (14:07 +0200)
committerJani Nikula <[email protected]>
Tue, 20 Nov 2018 10:49:24 +0000 (12:49 +0200)
Simply return the condition. No functional changes.

Reviewed-by: Joonas Lahtinen <[email protected]>
Signed-off-by: Jani Nikula <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/i915/i915_fixed.h

index da43c930dfa29e20357f01ddef82fb8edd9c2e90..cb099701a75ecc9685c276c24ebea967d1b5a4f7 100644 (file)
@@ -14,9 +14,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)
This page took 0.053997 seconds and 4 git commands to generate.