]> www.infradead.org Git - users/hch/misc.git/commitdiff
drm/i915: Add braces around the else block in clflush_write32()
authorSebastian Brzezinka <sebastian.brzezinka@intel.com>
Fri, 18 Jul 2025 10:28:04 +0000 (10:28 +0000)
committerAndi Shyti <andi.shyti@linux.intel.com>
Thu, 24 Jul 2025 13:05:23 +0000 (15:05 +0200)
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
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c

index ca7e9216934a7d89f9f2b5ab3bfa445b75cffc84..0801d4a140e35398ff05a22902527a50bb7c1ac3 100644 (file)
@@ -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