mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-03 15:16:20 +00:00
Merge pull request #2576 from pacovn/Coverity_1399228_Logically_dead_code
bgpd: dead code (Coverity 1399228)
This commit is contained in:
commit
d55c2456e8
@ -388,15 +388,11 @@ int rfapiStream2Vty(void *stream, /* input */
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (stream) {
|
||||
*vty = stream; /* VTYNL requires vty to be legit */
|
||||
*fp = (int (*)(void *, const char *, ...))vty_out;
|
||||
*outstream = stream;
|
||||
*vty_newline = str_vty_newline(*vty);
|
||||
return 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
*vty = stream; /* VTYNL requires vty to be legit */
|
||||
*fp = (int (*)(void *, const char *, ...))vty_out;
|
||||
*outstream = stream;
|
||||
*vty_newline = str_vty_newline(*vty);
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* called from bgpd/bgp_vty.c'route_vty_out() */
|
||||
|
Loading…
Reference in New Issue
Block a user