projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
e9c78c2
)
nvme-pci: cleanup nvme_irq()
author
Chaitanya Kulkarni
<chaitanya.kulkarni@wdc.com>
Tue, 23 Feb 2021 20:47:41 +0000
(12:47 -0800)
committer
Christoph Hellwig
<hch@lst.de>
Fri, 2 Apr 2021 16:48:25 +0000
(18:48 +0200)
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>
drivers/nvme/host/pci.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/nvme/host/pci.c
b/drivers/nvme/host/pci.c
index 2d5496c52afd8ba802f7f6048fbf0529cff70fa4..f03177589c02d11090073f81644a96312a6f615d 100644
(file)
--- 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)