[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915: A couple of if/else ladder refactors

Patchwork patchwork at emeril.freedesktop.org
Thu Sep 8 20:55:55 UTC 2022


== Series Details ==

Series: drm/i915: A couple of if/else ladder refactors
URL   : https://patchwork.freedesktop.org/series/108315/
State : warning

== Summary ==

Error: dim checkpatch failed
8e2c6bd18bc2 drm/i915: Invert if/else ladder for frequency read
-:120: WARNING:UNNECESSARY_ELSE: else is not generally useful after a break or return
#120: FILE: drivers/gpu/drm/i915/gt/intel_gt_clock_utils.c:139:
+		return f12_5_mhz;
+	} else {

total: 0 errors, 1 warnings, 0 checks, 114 lines checked
bf4f7785d356 drm/i915/gt: Extract per-platform function for frequency read
a7ec6551bb03 drm/i915: Invert if/else ladder for stolen init




More information about the Intel-gfx mailing list