projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3122b9c
)
drm/i915/fixed: simplify FP_16_16_MAX definition
author
Jani Nikula
<jani.nikula@intel.com>
Fri, 16 Nov 2018 12:07:27 +0000
(14:07 +0200)
committer
Jani Nikula
<jani.nikula@intel.com>
Tue, 20 Nov 2018 10:49:24 +0000
(12:49 +0200)
No need to use a compound statement enclosed in parenthesis where a C99
compound literal will do. 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-3-jani.nikula@intel.com
drivers/gpu/drm/i915/i915_fixed.h
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/i915_fixed.h
b/drivers/gpu/drm/i915/i915_fixed.h
index 6c914940b4a9efcf95602bda4832d6f5b6e0689f..da43c930dfa29e20357f01ddef82fb8edd9c2e90 100644
(file)
--- a/
drivers/gpu/drm/i915/i915_fixed.h
+++ b/
drivers/gpu/drm/i915/i915_fixed.h
@@
-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)
{