author: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> 2021-02-12 18:10:42 +0100
committer: Dan Williams <dan.j.williams@intel.com> 2021-02-16 19:34:57 -0800
commit: 8409f942a1f8c28296910b7b1d60f27dd3e03162
parent: 1048ba83fb1c00cd24172e23e8263972f6b5d9ac
Commit Summary:
Diffstat:
1 file changed, 0 insertions, 3 deletions
diff --git a/drivers/nvdimm/dimm.c b/drivers/nvdimm/dimm.c
index 7d4ddc4d9322..94be3ae1d29f 100644
--- a/drivers/nvdimm/dimm.c
+++ b/drivers/nvdimm/dimm.c
@@ -117,9 +117,6 @@ static int nvdimm_remove(struct device *dev)
{
struct nvdimm_drvdata *ndd = dev_get_drvdata(dev);
- if (!ndd)
- return 0;
-
nvdimm_bus_lock(dev);
dev_set_drvdata(dev, NULL);
nvdimm_bus_unlock(dev);