netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net v3 0/2] net: Fix return value check for fixed_phy_register()
@ 2023-08-18  5:12 Ruan Jinjie
  2023-08-18  5:12 ` [PATCH net v3 1/2] net: bgmac: " Ruan Jinjie
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Ruan Jinjie @ 2023-08-18  5:12 UTC (permalink / raw)
  To: rafal, bcm-kernel-feedback-list, davem, edumazet, kuba, pabeni,
	opendmb, florian.fainelli, pgynther, netdev
  Cc: ruanjinjie

The fixed_phy_register() function returns error pointers and never
returns NULL. Update the checks accordingly.

Changes in v3:
- Drop the error fix patch for fixed_phy_get_gpiod().
- Split the error code update code into another patch set as suggested.
- Update the commit title and message.

Ruan Jinjie (2):
  net: bgmac: Fix return value check for fixed_phy_register()
  net: bcmgenet: Fix return value check for fixed_phy_register()

 drivers/net/ethernet/broadcom/bgmac.c        | 2 +-
 drivers/net/ethernet/broadcom/genet/bcmmii.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2023-08-20 10:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-18  5:12 [PATCH net v3 0/2] net: Fix return value check for fixed_phy_register() Ruan Jinjie
2023-08-18  5:12 ` [PATCH net v3 1/2] net: bgmac: " Ruan Jinjie
2023-08-18 18:57   ` Leon Romanovsky
2023-08-18  5:12 ` [PATCH net v3 2/2] net: bcmgenet: " Ruan Jinjie
2023-08-18 18:56   ` Leon Romanovsky
2023-08-19  0:28   ` Doug Berger
2023-08-20 10:06 ` [PATCH net v3 0/2] net: " patchwork-bot+netdevbpf

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