net: phylink: use for_each_set_bit()
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Sun, 19 Nov 2023 21:07:43 +0000 (21:07 +0000)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 21 Nov 2023 12:26:03 +0000 (13:26 +0100)
commit335662889f5a5f4d5668ed6c8b5fd58913d91d15
tree0194d94a83b273959ba8fec4590090fafbe5ee70
parent79a4f4dfa69a8379ab34675be976c2f866c77403
net: phylink: use for_each_set_bit()

Use for_each_set_bit() rather than open coding the for() test_bit()
loop.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Wojciech Drewek <wojciech.drewek@intel.com>
Link: https://lore.kernel.org/r/E1r4p15-00Cpxe-C7@rmk-PC.armlinux.org.uk
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/phy/phylink.c