summaryrefslogtreecommitdiff
path: root/lib/vrf.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/vrf.c')
-rw-r--r--lib/vrf.c4
1 files changed, 1 insertions, 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",