Commit 1b56749e authored by Keith Busch's avatar Keith Busch Committed by Matthew Wilcox

NVMe: Fix checkpatch issues

Signed-off-by: default avatarKeith Busch <keith.busch@intel.com>
parent c3bfe717
...@@ -451,10 +451,8 @@ static void nvme_bio_pair_endio(struct bio *bio, int err) ...@@ -451,10 +451,8 @@ static void nvme_bio_pair_endio(struct bio *bio, int err)
if (atomic_dec_and_test(&bp->cnt)) { if (atomic_dec_and_test(&bp->cnt)) {
bio_endio(bp->parent, bp->err); bio_endio(bp->parent, bp->err);
if (bp->bv1) kfree(bp->bv1);
kfree(bp->bv1); kfree(bp->bv2);
if (bp->bv2)
kfree(bp->bv2);
kfree(bp); kfree(bp);
} }
} }
...@@ -1348,7 +1346,8 @@ static int nvme_submit_io(struct nvme_ns *ns, struct nvme_user_io __user *uio) ...@@ -1348,7 +1346,8 @@ static int nvme_submit_io(struct nvme_ns *ns, struct nvme_user_io __user *uio)
c.rw.appmask = cpu_to_le16(io.appmask); c.rw.appmask = cpu_to_le16(io.appmask);
if (meta_len) { if (meta_len) {
meta_iod = nvme_map_user_pages(dev, io.opcode & 1, io.metadata, meta_len); meta_iod = nvme_map_user_pages(dev, io.opcode & 1, io.metadata,
meta_len);
if (IS_ERR(meta_iod)) { if (IS_ERR(meta_iod)) {
status = PTR_ERR(meta_iod); status = PTR_ERR(meta_iod);
meta_iod = NULL; meta_iod = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment