dm: only initialize md->dax_dev if CONFIG_DAX_DRIVER is enabled
authorPeng Wang <rocking@whu.edu.cn>
Thu, 18 Apr 2019 13:59:19 +0000 (21:59 +0800)
committerMike Snitzer <snitzer@redhat.com>
Fri, 26 Apr 2019 15:28:17 +0000 (11:28 -0400)
commit514cf4f881dc82507d87d2ccd5e7478fd36632fa
tree4b6d56aa2931004b96a9878bb3a154ee2d3be376
parent5de719e3d01b4abe0de0d7b857148a880ff2a90b
dm: only initialize md->dax_dev if CONFIG_DAX_DRIVER is enabled

md->dax_dev defaults to NULL and there is no need to initialize it
if CONFIG_DAX_DRIVER is disabled.

Signed-off-by: Peng Wang <rocking@whu.edu.cn>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm.c