]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: phy: Refactor fwnode_get_phy_node()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 30 Apr 2025 14:38:02 +0000 (17:38 +0300)
committerJakub Kicinski <kuba@kernel.org>
Mon, 5 May 2025 23:50:26 +0000 (16:50 -0700)
commit1f586017f517f677586ec3853258419f731569a0
tree58a0dc25b10f48cb4005586c0ea9f978435cf854
parent320a66f84022028f1277bf568a5e8987eac6e797
net: phy: Refactor fwnode_get_phy_node()

Refactor to check if the fwnode we got is correct and return if so,
otherwise do additional checks. Using same pattern in all conditionals
makes it slightly easier to read and understand.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20250430143802.3714405-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/phy_device.c