]> git.proxmox.com Git - mirror_frr.git/commitdiff
bgpd: dead code (Coverity 1399228)
authorpaco <paco@voltanet.io>
Thu, 28 Jun 2018 13:56:29 +0000 (15:56 +0200)
committerpaco <paco@voltanet.io>
Thu, 28 Jun 2018 13:56:29 +0000 (15:56 +0200)
Signed-off-by: F. Aragon <paco@voltanet.io>
bgpd/rfapi/rfapi_vty.c

index 18a979e531ea26c6ba09072d68cc2ceede9b63e0..2f8f132fcdbfba7fec298b596379251aa4968f24 100644 (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() */