From 7cd6e36a7c3f89364888804e79c31c1ff0c98c19 Mon Sep 17 00:00:00 2001 From: Kamalesh Babulal Date: Fri, 8 Jul 2022 10:30:23 -0600 Subject: [PATCH] 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 Signed-off-by: Tom Hromatka (cherry picked from commit aa758d5edc8d043a1e4092ce1ef830bcce3603ae) --- src/config.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/config.c b/src/config.c index 774f0d70..dfabbd10 100644 --- a/src/config.c +++ b/src/config.c @@ -846,12 +846,6 @@ static int config_validate_namespaces(void) */ mount_path = cg_mount_table[i].mount.path; - if (!mount_path) { - last_errno = errno; - error = ECGOTHER; - goto out_error; - } - /* * Setup the namespace for the subsystems having the same * mount point. -- 2.47.2