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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 May 2020 14:42:00 +0000 (16:42 +0200)
commitda9de008fb6a9b2c0161712ec4f708f1e96b0327
treecd22dc71f240f4d0f8992fbd97d50bfcfb6d044e
parent5307944aa5e4942670ba9dcf8d9184e49c077ce2
libnvdimm/btt: Remove unnecessary code in btt_freelist_init

[ Upstream commit 2f8c9011151337d0bc106693f272f9bddbccfab2 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nvdimm/btt.c