]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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 15:37:39 +0000 (17:37 +0200)
commit2979da373471f64a14d67904c969c74cd42b0dda
tree6d34af67e219a6a2fe9b99b9156aa8e5ee865d09
parent5e66a5e2fd776bf014f06ba8ff569318c5415c71
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