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,7 +388,6 @@ 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;
@ -396,9 +395,6 @@ int rfapiStream2Vty(void *stream, /* input */
return 1;
}
return 0;
}
/* called from bgpd/bgp_vty.c'route_vty_out() */
void rfapi_vty_out_vncinfo(struct vty *vty, struct prefix *p,
struct bgp_info *bi, safi_t safi)