Re: [PATCH v2 02/10] net: ethernet: ixgbe: don't call devm_mdiobus_free()

From
Florian Fainelli <f.fainelli@gmail.com>
Date
2020-06-29 19:28:23
Also in
linux-devicetree, linux-mediatek, lkml, netdev
Reply to
Bartosz Golaszewski, 2020-06-29

On 6/29/2020 5:03 AM, Bartosz Golaszewski wrote:
From: Bartosz Golaszewski <redacted>

The idea behind devres is that the release callbacks are called if
probe fails. As we now check the return value of ixgbe_mii_bus_init(),
we can drop the call devm_mdiobus_free() in error path as the release
callback will be called automatically.

Signed-off-by: Bartosz Golaszewski <redacted>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
-- 
Florian

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Thread (22 messages) 22 messages, 5 authors, last reply 2020-06-30
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help