projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1951fea
)
NVMe: initialize error to '0'
author
Jens Axboe
<axboe@fb.com>
Thu, 15 Oct 2015 15:49:57 +0000
(09:49 -0600)
committer
Jens Axboe
<axboe@fb.com>
Thu, 15 Oct 2015 15:49:57 +0000
(09:49 -0600)
Reported-by: Keith Busch <keith.busch@intel.com>
Fixes:
1951feae88c5
("nvme: use an integer value to Linux errno values")
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/host/pci.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/nvme/host/pci.c
b/drivers/nvme/host/pci.c
index f73c574d59f54ca0cdc186de68fd711992bca7cb..22d83752ae87d91e0cb7689c5e99de50e3d0080a 100644
(file)
--- a/
drivers/nvme/host/pci.c
+++ b/
drivers/nvme/host/pci.c
@@
-607,7
+607,7
@@
static void req_completion(struct nvme_queue *nvmeq, void *ctx,
struct request *req = iod_get_private(iod);
struct nvme_cmd_info *cmd_rq = blk_mq_rq_to_pdu(req);
u16 status = le16_to_cpup(&cqe->status) >> 1;
- int error;
+ int error
= 0
;
if (unlikely(status)) {
if (!(status & NVME_SC_DNR || blk_noretry_request(req))