]> www.infradead.org Git - users/dwmw2/linux.git/commit
net: pcs: xpcs: pass xpcs instead of xpcs->id to xpcs_find_compat()
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Fri, 4 Oct 2024 10:20:51 +0000 (11:20 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Oct 2024 11:13:11 +0000 (12:13 +0100)
commit4490f5669b067359cf149ce1acf5b19c38a5edad
tree999efd0131556b3e7b209030a61d4a8bf6472ef7
parent0397212f930626bd584642454f5c7ad0ba0dca22
net: pcs: xpcs: pass xpcs instead of xpcs->id to xpcs_find_compat()

xpcs_find_compat() is now always passed xpcs->id. Rather than always
dereferencing this in the caller, move it into xpcs_find_compat(),
thus making this function consistent with most of the other xpcs
functions in taking an xpcs pointer.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/pcs/pcs-xpcs.c