libnvdimm/namespace: Clean up holder_class_store()
authorDan Williams <dan.j.williams@intel.com>
Mon, 4 Mar 2019 20:14:04 +0000 (12:14 -0800)
committerDan Williams <dan.j.williams@intel.com>
Mon, 4 Mar 2019 20:26:41 +0000 (12:26 -0800)
commit075c3fdd56ac2e077f928353daf786341bbb6a52
tree5821bf4dfc0a5457425db3b574dc2478cd7e31ad
parent316720b9c2341307b9a17103cdafa1ca9b2fb872
libnvdimm/namespace: Clean up holder_class_store()

Use sysfs_streq() in place of open-coded strcmp()'s that check for an
optional "\n" at the end of the input.

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