From cfb67a784e77380a5a67b06da3955191b1c752ed Mon Sep 17 00:00:00 2001 From: Renato Westphal Date: Fri, 27 Jan 2017 18:16:31 -0200 Subject: [PATCH] lib: remove unnecessary variable Signed-off-by: Renato Westphal --- lib/vrf.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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", -- 2.39.5