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_...@163.com> --- 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