summaryrefslogtreecommitdiff
path: root/lib/vty.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2020-02-13 15:21:26 +0200
committerDonatas Abraitis <donatas.abraitis@gmail.com>2020-02-13 15:39:54 +0200
commit752022670a294584ce45161a182f5b5790da45b9 (patch)
treed8bf19c32a08a1dd4ba2799ed2fee8450fe735e1 /lib/vty.c
parent60092db3fdead2a72e9368aaaa1e789c741c7ce8 (diff)
*: Remove break after return
Just a deadcode. Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'lib/vty.c')
-rw-r--r--lib/vty.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/vty.c b/lib/vty.c
index cf16133852..893c215b43 100644
--- a/lib/vty.c
+++ b/lib/vty.c
@@ -1221,7 +1221,6 @@ static int vty_telnet_option(struct vty *vty, unsigned char *buf, int nbytes)
vty->sb_len = 0;
vty->iac_sb_in_progress = 1;
return 0;
- break;
case SE: {
if (!vty->iac_sb_in_progress)
return 0;
@@ -1261,7 +1260,6 @@ static int vty_telnet_option(struct vty *vty, unsigned char *buf, int nbytes)
}
vty->iac_sb_in_progress = 0;
return 0;
- break;
}
default:
break;
@@ -2060,7 +2058,6 @@ static int vtysh_flush(struct vty *vty)
buffer_reset(vty->obuf);
vty_close(vty);
return -1;
- break;
case BUFFER_EMPTY:
break;
}