Merge pull request #2576 from pacovn/Coverity_1399228_Logically_dead_code

bgpd: dead code (Coverity 1399228)
This commit is contained in:
Quentin Young 2018-06-28 12:55:25 -04:00 committed by GitHub
commit d55c2456e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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() */