summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>2021-02-23 23:47:41 +0300
committerChristoph Hellwig <hch@lst.de>2021-04-02 19:48:25 +0300
commit05fae499a944a6d7e2fbd60a7966d407bdb82967 (patch)
tree532baeaadd9cfb2d450d64869af69ca2acb621bb
parente9c78c23359fad8c58fa5654efe7320c8128f4af (diff)
downloadlinux-05fae499a944a6d7e2fbd60a7966d407bdb82967.tar.xz
nvme-pci: cleanup nvme_irq()
Get rid of a local variable that is not needed and just return the status directly. Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
-rw-r--r--drivers/nvme/host/pci.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
index 2d5496c52afd..f03177589c02 100644
--- a/drivers/nvme/host/pci.c
+++ b/drivers/nvme/host/pci.c
@@ -1060,12 +1060,10 @@ static inline int nvme_process_cq(struct nvme_queue *nvmeq)
static irqreturn_t nvme_irq(int irq, void *data)
{
struct nvme_queue *nvmeq = data;
- irqreturn_t ret = IRQ_NONE;
if (nvme_process_cq(nvmeq))
- ret = IRQ_HANDLED;
-
- return ret;
+ return IRQ_HANDLED;
+ return IRQ_NONE;
}
static irqreturn_t nvme_irq_check(int irq, void *data)