Skip to contentSkip to conversation

nvme: simple cleanup

PATCH Applied Dongli Zhang 4 participants 8 messages Jun 8, 2020 – Jun 9, 2020

Subsystems (2)
lore
Share & tools
lore
#1 lore raw

PATCH 1/2 nvmet-loop: remove unused 'target_ctrl' in nvme_loop_ctrl

This field is never used since the introduction of nvme loopback by commit 3a85a5de29ea ("nvme-loop: add a NVMe loopback host driver").

---
 drivers/nvme/target/loop.c | 1 -
 1 file changed, 1 deletion(-)
drivers/nvme/target/loop.c +0 -1
index 0d54e730cbf2..e8fa70c15143 100644
@@ -36,7 +36,6 @@ struct nvme_loop_ctrl {
 	struct nvme_loop_iod	async_event_iod;
 	struct nvme_ctrl	ctrl;
 
-	struct nvmet_ctrl	*target_ctrl;
 	struct nvmet_port	*port;
 };
 
Signature · 7 lines
2.17.1


_______________________________________________
linux-nvme mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-nvme
#4 lore raw

PATCH 2/2 nvme-pci: remove empty line following nvme_should_reset()

In reply to Dongli Zhang

Just cleanup by removing the empty line.

---
 drivers/nvme/host/pci.c | 1 -
 1 file changed, 1 deletion(-)
drivers/nvme/host/pci.c +0 -1
index d690d5593a80..4471e9910906 100644
@@ -1153,7 +1153,6 @@ static void abort_endio(struct request *req, blk_status_t error)
 
 static bool nvme_should_reset(struct nvme_dev *dev, u32 csts)
 {
-
 	/* If true, indicates loss of adapter communication, possibly by a
 	 * NVMe Subsystem reset.
 	 */
Signature · 7 lines
2.17.1


_______________________________________________
linux-nvme mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-nvme