summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2023-05-23 08:35:56 -0400
committerChristian Hopps <chopps@labn.net>2023-05-30 02:10:20 -0400
commit51941c1916f6ae8a01c40cf325ba2ae9aa9dad0b (patch)
tree65298ce21b31729846532e05e896a6a97801be66 /lib
parent8611886d52f6ca1b741bbf639809a6cad9ec6879 (diff)
mgmtd: address review comments
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'lib')
-rw-r--r--lib/vty.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/vty.c b/lib/vty.c
index ab709ef4c9..4cf63508bf 100644
--- a/lib/vty.c
+++ b/lib/vty.c
@@ -2734,10 +2734,8 @@ FILE *vty_open_config(const char *config_file, char *config_default_dir)
if (strstr(config_default_dir, "vtysh") == NULL) {
ret = stat(integrate_default, &conf_stat);
- if (ret >= 0) {
- // read_success = true;
+ if (ret >= 0)
goto tmp_free_and_out;
- }
}
#endif /* VTYSH */
confp = fopen(config_default_dir, "r");