Skip to content

Commit ef658fc

Browse files
committed
NVMe: initialize error to '0'
Reported-by: Keith Busch <keith.busch@intel.com> Fixes: 1951fea ("nvme: use an integer value to Linux errno values") Signed-off-by: Jens Axboe <axboe@fb.com>
1 parent 1951fea commit ef658fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/nvme/host/pci.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ static void req_completion(struct nvme_queue *nvmeq, void *ctx,
607607
struct request *req = iod_get_private(iod);
608608
struct nvme_cmd_info *cmd_rq = blk_mq_rq_to_pdu(req);
609609
u16 status = le16_to_cpup(&cqe->status) >> 1;
610-
int error;
610+
int error = 0;
611611

612612
if (unlikely(status)) {
613613
if (!(status & NVME_SC_DNR || blk_noretry_request(req))

0 commit comments

Comments
 (0)