diff mbox series

drm/i915/gt: Remove unncessary {} from if-else

Message ID 20231026105623.480172-1-gilbertadikankwu@gmail.com (mailing list archive)
State New, archived
Headers show
Series drm/i915/gt: Remove unncessary {} from if-else | expand

Commit Message

Gilbert Adikankwu Oct. 26, 2023, 10:56 a.m. UTC
Fix checkpatch.pl error:

WARNING: braces {} are not necessary for any arm of this statement

Signed-off-by: Gilbert Adikankwu <gilbertadikankwu@gmail.com>
---
 drivers/gpu/drm/i915/gt/intel_sseu.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

Comments

Andi Shyti Oct. 26, 2023, 1:07 p.m. UTC | #1
Hi Gilbert,

On Thu, Oct 26, 2023 at 11:56:23AM +0100, Gilbert Adikankwu wrote:
> Fix checkpatch.pl error:
> 
> WARNING: braces {} are not necessary for any arm of this statement
> 
> Signed-off-by: Gilbert Adikankwu <gilbertadikankwu@gmail.com>

Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>

Andi
Andi Shyti Oct. 29, 2023, 10:03 a.m. UTC | #2
Hi Gilbert,

On Thu, Oct 26, 2023 at 11:56:23AM +0100, Gilbert Adikankwu wrote:
> Fix checkpatch.pl error:
> 
> WARNING: braces {} are not necessary for any arm of this statement
> 
> Signed-off-by: Gilbert Adikankwu <gilbertadikankwu@gmail.com>

the errors from CI are obviously unrelated to this patch.

Applied in drm-intel-gt-next.

Andi
Gilbert Adikankwu Oct. 29, 2023, 11:40 a.m. UTC | #3
Hi,

On Sun, 29 Oct 2023, 11:03 Andi Shyti, <andi.shyti@linux.intel.com> wrote:

> Hi Gilbert,
>
> On Thu, Oct 26, 2023 at 11:56:23AM +0100, Gilbert Adikankwu wrote:
> > Fix checkpatch.pl error:
> >
> > WARNING: braces {} are not necessary for any arm of this statement
> >
> > Signed-off-by: Gilbert Adikankwu <gilbertadikankwu@gmail.com>
>
> the errors from CI are obviously unrelated to this patch.
>
> Applied in drm-intel-gt-next.
>
> Andi
>

Thanks for the feedback.

Gilbert.

>
diff mbox series

Patch

diff --git a/drivers/gpu/drm/i915/gt/intel_sseu.c b/drivers/gpu/drm/i915/gt/intel_sseu.c
index f602895f6d0d..6a3246240e81 100644
--- a/drivers/gpu/drm/i915/gt/intel_sseu.c
+++ b/drivers/gpu/drm/i915/gt/intel_sseu.c
@@ -849,13 +849,12 @@  void intel_sseu_print_topology(struct drm_i915_private *i915,
 			       const struct sseu_dev_info *sseu,
 			       struct drm_printer *p)
 {
-	if (sseu->max_slices == 0) {
+	if (sseu->max_slices == 0)
 		drm_printf(p, "Unavailable\n");
-	} else if (GRAPHICS_VER_FULL(i915) >= IP_VER(12, 50)) {
+	else if (GRAPHICS_VER_FULL(i915) >= IP_VER(12, 50))
 		sseu_print_xehp_topology(sseu, p);
-	} else {
+	else
 		sseu_print_hsw_topology(sseu, p);
-	}
 }
 
 void intel_sseu_print_ss_info(const char *type,