diff options
| author | 2025-11-11 11:26:39 +0000 | |
|---|---|---|
| committer | 2025-11-13 17:03:15 +0100 | |
| commit | d0af55df5a786cb8f11ca1923cd7dc8b2af01309 (patch) | |
| tree | 12e24cf536ebb1760e399bcf873809e02e6bd025 /net/unix/garbage.c | |
| parent | net: phy: fixed_phy: initialize the link status as up (diff) | |
| download | wireguard-linux-d0af55df5a786cb8f11ca1923cd7dc8b2af01309.tar.xz wireguard-linux-d0af55df5a786cb8f11ca1923cd7dc8b2af01309.zip | |
net: stmmac: clean up stmmac_reset()
stmmac_reset() takes the stmmac_priv and an ioaddr. It has one call
site, which passes the priv pointer, and dereferences priv for the
ioaddr.
stmmac_reset() then checks whether priv is NULL. If it was, the caller
would have oopsed. Remove the checks for NULL, and move the dereference
for ioaddr into stmmac_reset().
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/E1vImWF-0000000DrIr-1fmn@rmk-PC.armlinux.org.uk
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'net/unix/garbage.c')
0 files changed, 0 insertions, 0 deletions
