diff mbox series

[4/6] drm/bochs: Remove redundant else in atomic_check

Message ID CE6A6B80-3EA0-42AA-B29F-5774698E1993@live.com (mailing list archive)
State New
Headers show
Series drm: remove redundant else across drivers | expand

Commit Message

Aditya Garg Feb. 25, 2025, 11:07 a.m. UTC
From: Aditya Garg <gargaditya08@live.com>

Remove the redundant else statement from atomic_check since the previous if
statement was returning if true.

Signed-off-by: Aditya Garg <gargaditya08@live.com>
---
 drivers/gpu/drm/tiny/bochs.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/gpu/drm/tiny/bochs.c b/drivers/gpu/drm/tiny/bochs.c
index c67e1f906..9ed5f70a0 100644
--- a/drivers/gpu/drm/tiny/bochs.c
+++ b/drivers/gpu/drm/tiny/bochs.c
@@ -433,7 +433,8 @@  static int bochs_primary_plane_helper_atomic_check(struct drm_plane *plane,
 						  false, false);
 	if (ret)
 		return ret;
-	else if (!new_plane_state->visible)
+
+	if (!new_plane_state->visible)
 		return 0;
 
 	return 0;