Skip to content

Commit bf91bac

Browse files
sberbzAndi Shyti
authored andcommitted
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
1 parent 4e65d10 commit bf91bac

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1382,8 +1382,9 @@ static void clflush_write32(u32 *addr, u32 value, unsigned int flushes)
13821382
*/
13831383
if (flushes & CLFLUSH_AFTER)
13841384
drm_clflush_virt_range(addr, sizeof(*addr));
1385-
} else
1385+
} else {
13861386
*addr = value;
1387+
}
13871388
}
13881389

13891390
static u64

0 commit comments

Comments
 (0)