[PATCH] drm/writeback: Remove redundant initialization of variable ret

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



    The variable ret is being initialized with a value that is never
    read, it is being updated later on. The assignment is redundant and
    can be removed.

Signed-off-by: Jingyu Wang <jingyuwang_vip@xxxxxxx>
---
 drivers/gpu/drm/drm_writeback.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/drm_writeback.c b/drivers/gpu/drm/drm_writeback.c
index a031c335bdb9..1bf8987322cd 100644
--- a/drivers/gpu/drm/drm_writeback.c
+++ b/drivers/gpu/drm/drm_writeback.c
@@ -179,7 +179,7 @@ int drm_writeback_connector_init(struct drm_device *dev,
 				 const u32 *formats, int n_formats,
 				 u32 possible_crtcs)
 {
-	int ret = 0;
+	int ret;
 
 	drm_encoder_helper_add(&wb_connector->encoder, enc_helper_funcs);
 

base-commit: 5957ac6635a1a12d4aa2661bbf04d3085a73372a
-- 
2.34.1




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux