Skip to contentSkip to conversation

drm/tidss: remove redundant assignment to variable ret

PATCH New Colin Ian King 1 participant 1 message Jul 2, 2025

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/tidss: remove redundant assignment to variable ret

The assignment of zero to variable is redundant as the following continue statement loops back to the start of the loop where ret is assigned a new value from the return to the call to get_parent_dss_vp. Remove assignment.

---
 drivers/gpu/drm/tidss/tidss_oldi.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/tidss/tidss_oldi.c +0 -1
index 8223b8fec8ce..182a69354424 100644
@@ -464,7 +464,6 @@ int tidss_oldi_init(struct tidss_device *tidss)
 				 * which may still be connected.
 				 * Continue to search for that.
 				 */
-				ret = 0;
 				continue;
 			}
 			goto err_put_node;
Signature · 1 line
2.50.0