summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Brzezinka <sebastian.brzezinka@intel.com>2025-07-18 10:28:04 +0000
committerAndi Shyti <andi.shyti@linux.intel.com>2025-07-24 15:05:23 +0200
commitbf91bac3ef027852b3e7698af6a00e4df124072c (patch)
treef7c3d70c135d6d8eb2dadb1ebb6f8a770c1e896a
parent4e65d104129e8be001d561410f6402135f6f8a45 (diff)
drm/i915: Add braces around the else block in clflush_write32()
According to the kernel coding style, if only one branch of a conditional statement is a single statement, braces should still be used in both branches. Signed-off-by: Sebastian Brzezinka <sebastian.brzezinka@intel.com> Reviewed-by: Krzysztof Karas <krzysztof.karas@intel.com> Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com> Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com> Link: https://lore.kernel.org/r/20250718102752.684975-2-sebastian.brzezinka@intel.com
-rw-r--r--drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c b/drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c
index ca7e9216934a..0801d4a140e3 100644
--- a/drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c
+++ b/drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c
@@ -1382,8 +1382,9 @@ static void clflush_write32(u32 *addr, u32 value, unsigned int flushes)
*/
if (flushes & CLFLUSH_AFTER)
drm_clflush_virt_range(addr, sizeof(*addr));
- } else
+ } else {
*addr = value;
+ }
}
static u64