Skip to content

Commit 8113d61

Browse files
damien-lemoalChristoph Hellwig
authored andcommitted
nvmet: pci-epf: remove NVMET_PCI_EPF_Q_IS_SQ
The flag NVMET_PCI_EPF_Q_IS_SQ is set but never used. Remove it. Signed-off-by: Damien Le Moal <dlemoal@kernel.org> Signed-off-by: Christoph Hellwig <hch@lst.de>
1 parent 4f6f3f4 commit 8113d61

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/nvme/target/pci-epf.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ static DEFINE_MUTEX(nvmet_pci_epf_ports_mutex);
6262
#define NVMET_PCI_EPF_CQ_RETRY_INTERVAL msecs_to_jiffies(1)
6363

6464
enum nvmet_pci_epf_queue_flags {
65-
NVMET_PCI_EPF_Q_IS_SQ = 0, /* The queue is a submission queue */
66-
NVMET_PCI_EPF_Q_LIVE, /* The queue is live */
65+
NVMET_PCI_EPF_Q_LIVE = 0, /* The queue is live */
6766
NVMET_PCI_EPF_Q_IRQ_ENABLED, /* IRQ is enabled for this queue */
6867
};
6968

@@ -1542,7 +1541,6 @@ static void nvmet_pci_epf_init_queue(struct nvmet_pci_epf_ctrl *ctrl,
15421541

15431542
if (sq) {
15441543
queue = &ctrl->sq[qid];
1545-
set_bit(NVMET_PCI_EPF_Q_IS_SQ, &queue->flags);
15461544
} else {
15471545
queue = &ctrl->cq[qid];
15481546
INIT_DELAYED_WORK(&queue->work, nvmet_pci_epf_cq_work);

0 commit comments

Comments
 (0)