mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 09:04:39 +02:00
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
This commit is contained in:
parent
4e65d10412
commit
bf91bac3ef
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user