]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
drm/i915/fixed: simplify is_fixed16_zero()
authorJani Nikula <jani.nikula@intel.com>
Fri, 16 Nov 2018 12:07:28 +0000 (14:07 +0200)
committerJani Nikula <jani.nikula@intel.com>
Tue, 20 Nov 2018 10:49:24 +0000 (12:49 +0200)
Simply return the condition. No functional changes.

Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181116120729.7580-4-jani.nikula@intel.com
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)