]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
config: remove dead code in config_validate_namespaces()
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Fri, 8 Jul 2022 16:30:23 +0000 (10:30 -0600)
committerTom Hromatka <tom.hromatka@oracle.com>
Fri, 8 Jul 2022 16:30:27 +0000 (10:30 -0600)
commit7cd6e36a7c3f89364888804e79c31c1ff0c98c19
tree92691ec6964cf415efe4b4901aef72a41ce6f84a
parent0664422e55da5a4dca00b7a215d883e3c1e240d8
config: remove dead code in config_validate_namespaces()

Remove the logically dead code, reported by the Coverity tool:

CID 258280 (#1 of 1): Logically dead code (DEADCODE)dead_error_begin:
Execution cannot reach this statement: last_errno = *__errno_locat....

cg_mount_table[i].mount.path can never be NULL, so remove that check in
the config_validate_namespaces().

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
(cherry picked from commit aa758d5edc8d043a1e4092ce1ef830bcce3603ae)
src/config.c