Heiko,
On Wed, Nov 4, 2015 at 1:44 PM, Heiko Stuebner wrote:
> for_each_available_child_of_node(dev->of_node, child) {
> - rk_phy = devm_kzalloc(dev, sizeof(*rk_phy), GFP_KERNEL);
> - if (!rk_phy)
> - return -ENOMEM;
> -
> -
This unclutters the loop in probe a lot and makes current (and future)
error handling easier to read.
Signed-off-by: Heiko Stuebner
---
drivers/phy/phy-rockchip-usb.c | 82 --
1 file changed, 47 insertions(+), 35 deletions(-)
diff --git
This unclutters the loop in probe a lot and makes current (and future)
error handling easier to read.
Signed-off-by: Heiko Stuebner
---
drivers/phy/phy-rockchip-usb.c | 82 --
1 file changed, 47 insertions(+), 35 deletions(-)
diff --git
Heiko,
On Wed, Nov 4, 2015 at 1:44 PM, Heiko Stuebner wrote:
> for_each_available_child_of_node(dev->of_node, child) {
> - rk_phy = devm_kzalloc(dev, sizeof(*rk_phy), GFP_KERNEL);
> - if (!rk_phy)
> - return -ENOMEM;
> -
4 matches
Mail list logo