nvdimm: remove nd_integrity_init
authorChristoph Hellwig <hch@lst.de>
Wed, 6 Mar 2024 14:27:37 +0000 (07:27 -0700)
committerIra Weiny <ira.weiny@intel.com>
Thu, 25 Apr 2024 19:37:12 +0000 (12:37 -0700)
commit9566b89295196996bce57bf307bc634cb0713cec
tree7d76ee996c652e8cc48347508a9874e82ed172a3
parent2c720b492c59b070930aa1be8bef6e256d3bf4b2
nvdimm: remove nd_integrity_init

nd_integrity_init is only called from a single place.  Open code it
there, and use IS_ENABLED to remove the need for an extra stub.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20240306142739.237234-2-hch@lst.de
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
drivers/nvdimm/btt.c
drivers/nvdimm/core.c
drivers/nvdimm/nd.h