]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: remove unnecessary variable
authorRenato Westphal <renato@opensourcerouting.org>
Fri, 27 Jan 2017 20:16:31 +0000 (18:16 -0200)
committerRenato Westphal <renato@opensourcerouting.org>
Wed, 1 Feb 2017 14:47:58 +0000 (12:47 -0200)
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
lib/vrf.c

index ce8ffe75d51e715dbabb16b2be3ca9d76dad3971..ab7b43b078231145853e21c61df3b69f917f8255 100644 (file)
--- 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",