aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/nvdimm/label.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/nvdimm/label.c')
-rw-r--r--drivers/nvdimm/label.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/nvdimm/label.c b/drivers/nvdimm/label.c
index 73e197babc2f..47a4828b8b31 100644
--- a/drivers/nvdimm/label.c
+++ b/drivers/nvdimm/label.c
@@ -353,11 +353,6 @@ static bool slot_valid(struct nvdimm_drvdata *ndd,
353 if (slot != __le32_to_cpu(nd_label->slot)) 353 if (slot != __le32_to_cpu(nd_label->slot))
354 return false; 354 return false;
355 355
356 /* check that DPA allocations are page aligned */
357 if ((__le64_to_cpu(nd_label->dpa)
358 | __le64_to_cpu(nd_label->rawsize)) % SZ_4K)
359 return false;
360
361 /* check checksum */ 356 /* check checksum */
362 if (namespace_label_has(ndd, checksum)) { 357 if (namespace_label_has(ndd, checksum)) {
363 u64 sum, sum_save; 358 u64 sum, sum_save;