]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: stmmac: use queue rather than ->queue_index
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Sat, 14 Mar 2026 09:43:36 +0000 (09:43 +0000)
committerJakub Kicinski <kuba@kernel.org>
Wed, 18 Mar 2026 03:32:09 +0000 (20:32 -0700)
commit8cde3c87039b2a468d7e39ed6927403ce42fe55e
treead7a42f83955d42918dc42e182ac8545e32e2b54
parent0da7809235d9cc34de71c9c5bf5028cc3034f806
net: stmmac: use queue rather than ->queue_index

We use a lot of ->queue_index where we already have the queue / channel
index (which are actually the same index), which has been used to get
the queue struct. Since queue and queue_index are identical in
priv->(tx|rx)_queue[queue]->queue_index there is no point using the
queue_index where we already have queue.

Use queue rather than queue_index.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/E1w1LWy-0000000DGT8-2Hoc@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c