mbox series

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

Message ID 20200820143027.3241-1-thunder.leizhen@huawei.com (mailing list archive)
Headers show
Series clean up some functions in nvdimm/badrange.c and namespace_devs.c | expand

Message

Zhen Lei Aug. 20, 2020, 2:30 p.m. UTC
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(-)