projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ffc02c6
)
drm/i915/gt: Remove {} from if-else
author
Soumya Negi
<soumya.negi97@gmail.com>
Thu, 26 Oct 2023 04:43:08 +0000
(21:43 -0700)
committer
Andi Shyti
<andi.shyti@linux.intel.com>
Fri, 27 Oct 2023 10:11:49 +0000
(12:11 +0200)
In accordance to Linux coding style(Documentation/process/4.Coding.rst),
remove unneeded braces from if-else block as all arms of this block
contain single statements.
Suggested-by: Andi Shyti <andi.shyti@linux.intel.com>
Signed-off-by: Soumya Negi <soumya.negi97@gmail.com>
Acked-by: Karolina Stolarek <karolina.stolarek@intel.com>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com>
Link:
https://patchwork.freedesktop.org/patch/msgid/20231026044309.17213-1-soumya.negi97@gmail.com
drivers/gpu/drm/i915/gt/intel_ggtt.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/gt/intel_ggtt.c
b/drivers/gpu/drm/i915/gt/intel_ggtt.c
index 1c93e84278a037d0b8512545edac9ec9747b423c..9f6f9e13853292f1066da2912a7c4466d238205b 100644
(file)
--- a/
drivers/gpu/drm/i915/gt/intel_ggtt.c
+++ b/
drivers/gpu/drm/i915/gt/intel_ggtt.c
@@
-226,16
+226,15
@@
static void guc_ggtt_invalidate(struct i915_ggtt *ggtt)
gen8_ggtt_invalidate(ggtt);
list_for_each_entry(gt, &ggtt->gt_list, ggtt_link) {
- if (intel_guc_tlb_invalidation_is_available(>->uc.guc))
{
+ if (intel_guc_tlb_invalidation_is_available(>->uc.guc))
guc_ggtt_ct_invalidate(gt);
- } else if (GRAPHICS_VER(i915) >= 12) {
+ else if (GRAPHICS_VER(i915) >= 12)
intel_uncore_write_fw(gt->uncore,
GEN12_GUC_TLB_INV_CR,
GEN12_GUC_TLB_INV_CR_INVALIDATE);
- } else {
+ else
intel_uncore_write_fw(gt->uncore,
GEN8_GTCR, GEN8_GTCR_INVALIDATE);
- }
}
}