libnvdimm, badrange: remove a WARN for list_empty
authorVishal Verma <vishal.l.verma@intel.com>
Mon, 30 Oct 2017 20:22:21 +0000 (13:22 -0700)
committerDan Williams <dan.j.williams@intel.com>
Thu, 2 Nov 2017 17:42:30 +0000 (10:42 -0700)
commit89360b87c3efa5d265a3b43dd8fc245c8f4356e3
tree2c35f5604a2622b75303c0dff1daed8cc4e1b7fb
parent9fb1a1903345fea598f48277576a3589a972b72e
libnvdimm, badrange: remove a WARN for list_empty

Now that we're reusing the badrange functions for nfit_test, and that
exposes badrange injection/clearing to userspace via the DSM paths, it
is plausible that a user may call the clear DSM multiple times. Since it
is harmless to do so, we can remove the WARN in badrange_forget.

Cc: Dave Jiang <dave.jiang@intel.com>
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/badrange.c