Skip to content

fec: Do not use NULL pointer to indicate error

Fabio Estevam netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3fec: Do not set fep->clk_ptp to NULL on errordrivers/net/ethernet/freescale/fec_main.c+3 -50 replies
2/3fec: Do not set fep->clk_enet_out to NULL on errordrivers/net/ethernet/freescale/fec_main.c+3 -50 replies
3/3fec: Do not set fep->reg_phy to NULL on errordrivers/net/ethernet/freescale/fec_main.c+5 -70 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchFugang Duan
SeriesA-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net-next 0/3] fec: Do not use NULL pointer to indicate error

From: Fabio Estevam <[email protected]>

Using IS_ERR() to indicate error can simplify the code a bit, so let's use it when appropriate.

Fabio Estevam (3):
fec: Do not set fep->clk_ptp to NULL on error
fec: Do not set fep->clk_enet_out to NULL on error
fec: Do not set fep->reg_phy to NULL on error

 drivers/net/ethernet/freescale/fec_main.c | 28 +++++++++++-----------------
 1 file changed, 11 insertions(+), 17 deletions(-)
Signature · 1 line
1.9.1