]> 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:28:49 +0000 (10:28 -0600)
committerTom Hromatka <tom.hromatka@oracle.com>
Fri, 8 Jul 2022 16:28:54 +0000 (10:28 -0600)
commitaa758d5edc8d043a1e4092ce1ef830bcce3603ae
tree43073f56558a8adaf850bcbd493e3c7720f7325f
parent8eee916573cd9a67713dd645d644d22759f39a69
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>
src/config.c