diff options
author | Ira Weiny <ira.weiny@intel.com> | 2019-11-14 19:06:34 -0800 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2019-11-14 19:06:34 -0800 |
commit | ab84b77afc95fc038d71aba80aa4440bcbd67663 (patch) | |
tree | 6b47a3d956988ac20e9de2a5ecc7adde86cc2240 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | d6d5df1db6e9d7f8f76d2911707f7d5877251b02 (diff) |
libnvdimm/namsepace: Don't set claim_class on error
Don't leave claim_class set to an invalid value if an error occurs in
btt_claim_class().
While we are here change the return type of __holder_class_store() to be
clear about the values it is returning.
This was found via code inspection.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Vishal Verma <vishal.l.verma@intel.com>
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Link: https://lore.kernel.org/r/20190925211348.14082-1-ira.weiny@intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions