Thread (18 messages) flat view 18 messages, 4 authors, 19d ago

Re: [PATCH net v3 1/5] net: phy: split phy_probe() error paths

From: Xuanqiang Luo <hidden>
Date: 2026-08-20 10:06:04
Also in: lkml

在 2026/8/19 21:35, Andrew Lunn 写道:
On Wed, Aug 19, 2026 at 02:02:32PM +0800, Xuanqiang Luo wrote:
quoted
-out:
+out_unreg_led_triggers:
+	if (!phydev->is_on_sfp_module)
+		phy_led_triggers_unregister(phydev);
+
+out_sfp_release:
  	sfp_bus_del_upstream(phydev->sfp_bus);
  	phydev->sfp_bus = NULL;
  
  	phy_cleanup_ports(phydev);
  
-	if (!phydev->is_on_sfp_module)
-		phy_led_triggers_unregister(phydev);
-
It would be nice to mention this reorder in the commit message. The
commit message is about "Why?". Explain why the order has been
changed.
	
     Andrew
Sure, I'll explain it in more detail in the next revision.

Thanks,
Xuanqiang
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help