Skip to content

fsl/fman: Fix some error handling code in mac_probe

Christophe JAILLET kernel-janitors lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4fsl/fman: Remove a useless call to 'dev_set_drvdata()'drivers/net/ethernet/freescale/fman/mac.c+0 -10 replies
2/4fsl/fman: Remove some useless codedrivers/net/ethernet/freescale/fman/mac.c+2 -51 reply
3/4fsl/fman: Add a missing 'of_node_put()' call in an error handling pathdrivers/net/ethernet/freescale/fman/mac.c+1 -00 replies
4/4fsl/fman: Remove a useless 'dev_err()' calldrivers/net/ethernet/freescale/fman/mac.c+0 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] fsl/fman: Fix some error handling code in mac_probe

Commit c6e26ea8c893 ("dpaa_eth: change device used") generated some conflicts in my patches waiting for submission. So I took a closer look at it.

So here is a serie of 4 patches.

The 1st one is just about a spurious call to 'dev_set_drvdata()', which is done in only 1 error handling path in the function.

The 2nd one removes some devm_iounmap/release/kfree functions which look useless to me.

The 3rd one fixes a missing of_node_put.

The 4th one is just cosmetic and removes a useless message.

Christophe JAILLET (4):
fsl/fman: Remove a useless call to 'dev_set_drvdata()' fsl/fman: Remove some useless code
fsl/fman: Add a missing 'of_node_put()' call in an error handling path fsl/fman: Remove a useless 'dev_err()' call

 drivers/net/ethernet/freescale/fman/mac.c | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)
Signature · 1 line
2.14.1