device-dax: delete a redundancy check in dev_dax_validate_align()
authorZhen Lei <thunder.leizhen@huawei.com>
Fri, 20 Nov 2020 09:20:57 +0000 (17:20 +0800)
committerDan Williams <dan.j.williams@intel.com>
Thu, 17 Dec 2020 21:52:28 +0000 (13:52 -0800)
commit8bcbe3132c66c07d03f64d5da80be753359f2e92
tree1da7900e165214933e8780b5734b42b08c7233c0
parent1aa574312518ef1d60d2dc62d58f7021db3b163a
device-dax: delete a redundancy check in dev_dax_validate_align()

After we have done the alignment check for the length of each range, the
alignment check for dev_dax_size(dev_dax) is no longer needed, because it
get the sum of the length of each range.

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Link: https://lore.kernel.org/r/20201120092057.2144-1-thunder.leizhen@huawei.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dax/bus.c