dax/super: Do not request a pointer kaddr when not required
authorHuaisheng Ye <yehs1@lenovo.com>
Mon, 30 Jul 2018 07:15:46 +0000 (15:15 +0800)
committerDave Jiang <dave.jiang@intel.com>
Mon, 30 Jul 2018 16:39:28 +0000 (09:39 -0700)
commite0b401e3fef0f81fd87434793db1adb0d7568058
treec0f68108b5d37ee18f15b4dfb0b48f234917808c
parent45df5d3dc0c7289c1e67afe6d2ba806ad5174314
dax/super: Do not request a pointer kaddr when not required

Function __bdev_dax_supported doesn't need to get local pointer kaddr
from direct_access. Using NULL instead of having to pass in a useless
local pointer that caller then just throw away.

Signed-off-by: Huaisheng Ye <yehs1@lenovo.com>
Reviewed-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
drivers/dax/super.c