[PATCH 0/4] clean up some functions in nvdimm/badrange.c and namespace_devs.c
From: Zhen Lei
Date: Thu Aug 20 2020 - 10:31:08 EST
When I learned the code of drivers/nvdimm, I found some places can be improved.
Zhen Lei (4):
libnvdimm: remove redundant list_empty() check in badrange.c
libnvdimm: eliminate a meaningless spinlock operation
libnvdimm: eliminate two unnecessary zero initializations in
badrange.c
libnvdimm: avoid unnecessary judgments in nvdimm_namespace_disk_name()
drivers/nvdimm/badrange.c | 36 ++++++++++--------------------------
drivers/nvdimm/namespace_devs.c | 12 +++++-------
2 files changed, 15 insertions(+), 33 deletions(-)
--
1.8.3