Skip to content

Commit

Permalink
NVMe: initialize error to '0'
Browse files Browse the repository at this point in the history
Reported-by: Keith Busch <[email protected]>
Fixes: 1951fea ("nvme: use an integer value to Linux errno values")
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
axboe committed Oct 15, 2015
1 parent 1951fea commit ef658fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/nvme/host/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit ef658fc

Please sign in to comment.