Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e7a23816 authored by Jani Nikula's avatar Jani Nikula
Browse files

drm/i915/fixed: simplify FP_16_16_MAX definition



No need to use a compound statement enclosed in parenthesis where a C99
compound literal will do. No functional changes.

Reviewed-by: default avatarJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181116120729.7580-3-jani.nikula@intel.com
parent 3122b9c5
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -10,11 +10,7 @@ typedef struct {
	u32 val;
} uint_fixed_16_16_t;

#define FP_16_16_MAX ({ \
	uint_fixed_16_16_t fp; \
	fp.val = UINT_MAX; \
	fp; \
})
#define FP_16_16_MAX ((uint_fixed_16_16_t){ .val = UINT_MAX })

static inline bool is_fixed16_zero(uint_fixed_16_16_t val)
{