From: Christian Franke Date: Fri, 23 Nov 2018 16:52:46 +0000 (+0100) Subject: lib/vty: Fix warning about shadowed variable X-Git-Tag: frr-7.1-dev~162^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=refs%2Fpull%2F3374%2Fhead;p=mirror%2Ffrr.git lib/vty: Fix warning about shadowed variable Signed-off-by: Christian Franke --- diff --git a/lib/vty.c b/lib/vty.c index 90ca5f502a..811c23c218 100644 --- a/lib/vty.c +++ b/lib/vty.c @@ -2458,8 +2458,6 @@ static void vty_read_file(struct nb_config *config, FILE *confp) */ if (config == NULL && vty->candidate_config && frr_get_cli_mode() == FRR_CLI_TRANSACTIONAL) { - int ret; - ret = nb_candidate_commit(vty->candidate_config, NB_CLIENT_CLI, true, "Read configuration file", NULL);