diff options
author | Li Zhijian <lizhijian@fujitsu.com> | 2024-08-19 09:20:45 +0300 |
---|---|---|
committer | Ira Weiny <ira.weiny@intel.com> | 2024-08-22 00:06:43 +0300 |
commit | 447b167bb60d0bb95967c4d93dac9af1cca437db (patch) | |
tree | 57e70babe1c0c824488787f2b9cf2d3bfd1da6de /rust/helpers/helpers.c | |
parent | 62c2aa6b1f565d2fc1ec11a6e9e8336ce37a6426 (diff) | |
download | linux-447b167bb60d0bb95967c4d93dac9af1cca437db.tar.xz |
nvdimm: Remove dead code for ENODEV checking in scan_labels()
The only way create_namespace_pmem() returns an ENODEV code is if
select_pmem_id(nd_region, &uuid) returns ENODEV when its 2nd parameter
is a null pointer. However, this is impossible because &uuid is always
valid.
Furthermore, create_namespace_pmem() is the only user of
select_pmem_id(), it's safe to remove the 'return -ENODEV' branch.
Signed-off-by: Li Zhijian <lizhijian@fujitsu.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Link: https://patch.msgid.link/20240819062045.1481298-2-lizhijian@fujitsu.com
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions