libnvdimm/btt: Remove unnecessary code in btt_freelist_init
authorVishal Verma <vishal.l.verma@intel.com>
Thu, 28 Feb 2019 00:06:26 +0000 (17:06 -0700)
committerDan Williams <dan.j.williams@intel.com>
Thu, 28 Feb 2019 17:42:51 +0000 (09:42 -0800)
commit2f8c9011151337d0bc106693f272f9bddbccfab2
tree6aa5fd999099dc069d24cbe2985f747adf48c239
parent0171b6b78131110a6870d4b7296bc9dfc392116a
libnvdimm/btt: Remove unnecessary code in btt_freelist_init

We call btt_log_read() twice, once to get the 'old' log entry, and again
to get the 'new' entry. However, we have no use for the 'old' entry, so
remove it.

Cc: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/btt.c