From: Renato Westphal Date: Fri, 27 Jan 2017 20:16:31 +0000 (-0200) Subject: lib: remove unnecessary variable X-Git-Tag: frr-3.0-branchpoint~57^2~5 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=cfb67a784e77380a5a67b06da3955191b1c752ed;p=matthieu%2Ffrr.git lib: remove unnecessary variable Signed-off-by: Renato Westphal --- diff --git a/lib/vrf.c b/lib/vrf.c index ce8ffe75d5..ab7b43b078 100644 --- a/lib/vrf.c +++ b/lib/vrf.c @@ -482,11 +482,9 @@ DEFUN (vrf, { int idx_name = 1; const char *vrfname = argv[idx_name]->arg; - struct vrf *vrfp; - size_t sl; - if ((sl = strlen(vrfname)) > VRF_NAMSIZ) + if (strlen(vrfname) > VRF_NAMSIZ) { vty_out (vty, "%% VRF name %s is invalid: length exceeds " "%d characters%s",