]> git.proxmox.com Git - mirror_frr.git/blobdiff - pimd/pim_br.c
lib: enforce vrf_name_to_id by returning default_vrf when name is null
[mirror_frr.git] / pimd / pim_br.c
index 1fa64efb7110352e6e1a1505a7ec5a9e3d44d2cd..fc6a02ec9316c8a7d8632dcc53f278cf7be15325 100644 (file)
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  * General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License
- * along with this program; see the file COPYING; if not, write to the
- * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
- * MA 02110-1301 USA
+ * You should have received a copy of the GNU General Public License along
+ * with this program; see the file COPYING; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  */
 #include <zebra.h>
 
@@ -65,11 +64,6 @@ void pim_br_set_pmbr(struct prefix_sg *sg, struct in_addr br)
 
        if (!pim_br) {
                pim_br = XCALLOC(MTYPE_PIM_BR, sizeof(*pim_br));
-               if (!pim_br) {
-                       zlog_err("PIM XCALLOC(%zu) failure", sizeof(*pim_br));
-                       return;
-               }
-
                pim_br->sg = *sg;
 
                listnode_add(pim_br_list, pim_br);
@@ -101,9 +95,4 @@ void pim_br_clear_pmbr(struct prefix_sg *sg)
 void pim_br_init(void)
 {
        pim_br_list = list_new();
-       if (!pim_br_list) {
-               zlog_err("%s: Failure to create pim_br_list",
-                        __PRETTY_FUNCTION__);
-               return;
-       }
 }