mirror of
https://github.com/raspberrypi/linux.git
synced 2026-01-03 08:14:12 +00:00
ionic: simplify the intr_index use in txq_init
The qcq->intr.index was set when the queue was allocated, there is no need to reach around to find it. Signed-off-by: Shannon Nelson <snelson@pensando.io> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
25cc5a5fac
commit
2103ed2fab
@@ -715,10 +715,8 @@ static int ionic_lif_txq_init(struct ionic_lif *lif, struct ionic_qcq *qcq)
|
||||
unsigned int intr_index;
|
||||
int err;
|
||||
|
||||
if (qcq->flags & IONIC_QCQ_F_INTR)
|
||||
intr_index = qcq->intr.index;
|
||||
else
|
||||
intr_index = lif->rxqcqs[q->index]->intr.index;
|
||||
intr_index = qcq->intr.index;
|
||||
|
||||
ctx.cmd.q_init.intr_index = cpu_to_le16(intr_index);
|
||||
|
||||
dev_dbg(dev, "txq_init.pid %d\n", ctx.cmd.q_init.pid);
|
||||
|
||||
Reference in New Issue
Block a user