[PATCH 0/4] clean up some functions in nvdimm/badrange.c and namespace_devs.c