netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/3] fec: Do not use NULL pointer to indicate error
@ 2014-09-02  1:12 Fabio Estevam
  2014-09-02  1:12 ` [PATCH net-next 1/3] fec: Do not set fep->clk_ptp to NULL on error Fabio Estevam
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Fabio Estevam @ 2014-09-02  1:12 UTC (permalink / raw)
  To: davem; +Cc: linux, B38611, netdev, Fabio Estevam

From: Fabio Estevam <fabio.estevam@freescale.com>

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(-)

-- 
1.9.1

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-09-02 20:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-02  1:12 [PATCH net-next 0/3] fec: Do not use NULL pointer to indicate error Fabio Estevam
2014-09-02  1:12 ` [PATCH net-next 1/3] fec: Do not set fep->clk_ptp to NULL on error Fabio Estevam
2014-09-02  1:12 ` [PATCH net-next 2/3] fec: Do not set fep->clk_enet_out " Fabio Estevam
2014-09-02  1:12 ` [PATCH net-next 3/3] fec: Do not set fep->reg_phy " Fabio Estevam
2014-09-02  1:37 ` [PATCH net-next 0/3] fec: Do not use NULL pointer to indicate error fugang.duan
2014-09-02 20:48 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).