libnvdimm: fix the clear-error check in nsio_rw_bytes
authorVishal Verma <vishal.l.verma@intel.com>
Sat, 1 Jul 2017 00:32:52 +0000 (18:32 -0600)
committerDan Williams <dan.j.williams@intel.com>
Sat, 1 Jul 2017 01:50:34 +0000 (18:50 -0700)
commit7e5a21dfe5524a85705d3bc7b540c849cc13e9a1
tree395fcce71797be4a539e993f57742360d4a24f4c
parentc13c43d54f2c6a3be1c675766778ac1ad8dfbfcc
libnvdimm: fix the clear-error check in nsio_rw_bytes

A leftover from the 'bandaid' fix that disabled BTT error clearing in
rw_bytes resulted in an incorrect check. After we converted these checks
over to use the NVDIMM_IO_ATOMIC flag, the ndns->claim check was both
redundant, and incorrect. Remove it.

Fixes: 3ae3d67ba705 ("libnvdimm: add an atomic vs process context flag to rw_bytes")
Cc: <stable@vger.kernel.org>
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/claim.c