Message ID | 20220913041528.115637-1-jingyuwang_vip@163.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | drm/writeback: Remove redundant initialization of variable ret | expand |
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);
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@163.com> --- drivers/gpu/drm/drm_writeback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) base-commit: 5957ac6635a1a12d4aa2661bbf04d3085a73372a