[PATCH RFC 1/5] NVMe: Code cleanup and minor checkpatch correction
Santosh Y
santoshsy at gmail.com
Mon Dec 30 05:27:16 EST 2013
Remove redunduant 'dev->node' deletion which is being
handled in nvme_dev_shutdown() and a minor checkpatch error.
Signed-off-by: Ravi Kumar <ravi.android at gmail.com>
Signed-off-by: Santosh Y <santoshsy at gmail.com>
diff --git a/drivers/block/nvme-core.c b/drivers/block/nvme-core.c
index b59a93a..a523296 100644
--- a/drivers/block/nvme-core.c
+++ b/drivers/block/nvme-core.c
@@ -2120,7 +2120,7 @@ static void nvme_dev_unmap(struct nvme_dev *dev)
struct nvme_delq_ctx {
struct task_struct *waiter;
- struct kthread_worker* worker;
+ struct kthread_worker *worker;
atomic_t refcount;
};
@@ -2556,10 +2556,6 @@ static void nvme_remove(struct pci_dev *pdev)
{
struct nvme_dev *dev = pci_get_drvdata(pdev);
- spin_lock(&dev_list_lock);
- list_del_init(&dev->node);
- spin_unlock(&dev_list_lock);
-
pci_set_drvdata(pdev, NULL);
flush_work(&dev->reset_work);
misc_deregister(&dev->miscdev);
--
1.8.3.2
More information about the Linux-nvme
mailing list