aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorLi Zhijian <[email protected]>2024-08-19 06:20:45 +0000
committerIra Weiny <[email protected]>2024-08-21 21:06:43 +0000
commit447b167bb60d0bb95967c4d93dac9af1cca437db (patch)
tree57e70babe1c0c824488787f2b9cf2d3bfd1da6de /security/selinux/hooks.c
parentnvdimm: Fix devs leaks in scan_labels() (diff)
downloadkernel-447b167bb60d0bb95967c4d93dac9af1cca437db.tar.gz
kernel-447b167bb60d0bb95967c4d93dac9af1cca437db.zip
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 <[email protected]> Reviewed-by: Ira Weiny <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Ira Weiny <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions