Skip to contentSkip to conversation

dax/pmem: Fix whitespace in dax_pmem

PATCH In review Vishal Verma 2 participants 2 messages Mar 18, 2019

Subsystems (2)
lore
Share & tools
lore

Vishal Verma

author maintainer
#0 lore raw

PATCH 1/1 dax/pmem: Fix whitespace in dax_pmem

A few lines were whitespace damaged, with spaces at the start instead of tabs. This was noticed while debugging an nfit_test failure, so fix them.

---
 drivers/dax/pmem/core.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/dax/pmem/core.c +3 -3
index f71019ce0647..f9f51786d556 100644
@@ -37,13 +37,13 @@ struct dev_dax *__dax_pmem_probe(struct device *dev, enum dev_dax_subsys subsys)
 	devm_nsio_disable(dev, nsio);
 
 	/* reserve the metadata area, device-dax will reserve the data */
-        pfn_sb = nd_pfn->pfn_sb;
+	pfn_sb = nd_pfn->pfn_sb;
 	offset = le64_to_cpu(pfn_sb->dataoff);
 	if (!devm_request_mem_region(dev, nsio->res.start, offset,
 				dev_name(&ndns->dev))) {
-                dev_warn(dev, "could not reserve metadata\n");
+		dev_warn(dev, "could not reserve metadata\n");
 		return ERR_PTR(-EBUSY);
-        }
+	}
 
 	rc = sscanf(dev_name(&ndns->dev), "namespace%d.%d", &region_id, &id);
 	if (rc != 2)
Signature · 6 lines
2.20.1

_______________________________________________
Linux-nvdimm mailing list
[email protected]
https://lists.01.org/mailman/listinfo/linux-nvdimm
#1 lore raw
Quoted 19 lines · Vishal Verma

A few lines were whitespace damaged, with spaces at the start instead of tabs. This was noticed while debugging an nfit_test failure, so fix them.

---
 drivers/dax/pmem/core.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/dax/pmem/core.c +0 -0
index f71019ce0647..f9f51786d556 100644
@@ -37,13 +37,13 @@ struct dev_dax *__dax_pmem_probe(struct device *dev, enum dev_dax_subsys subsys)
        devm_nsio_disable(dev, nsio);
 
        /* reserve the metadata area, device-dax will reserve the data */

drivers/dax/pmem/core.c struct dev_dax *__dax_pmem_probe(struct device *dev, enum dev_dax_subsys subsys) · line 46

Quoted 10 lines
drivers/dax/pmem/core.c +3 -3
-        pfn_sb = nd_pfn->pfn_sb;
+       pfn_sb = nd_pfn->pfn_sb;
        offset = le64_to_cpu(pfn_sb->dataoff);
        if (!devm_request_mem_region(dev, nsio->res.start, offset,
                                dev_name(&ndns->dev))) {
-                dev_warn(dev, "could not reserve metadata\n");
+               dev_warn(dev, "could not reserve metadata\n");
                return ERR_PTR(-EBUSY);
-        }
+       }

Looks good to me, literally, no chance of regression :).
_______________________________________________
Linux-nvdimm mailing list [email protected]
https://lists.01.org/mailman/listinfo/linux-nvdimm