We've already allocated the mp data structure
and am using hash_alloc_intern for the hash_get
function. This will return the passed
in data structure. There is no possibility
of mp being NULL.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
/* insert into misc tables for easy access */
mp = hash_get(msdp->peer_hash, mp, hash_alloc_intern);
- if (!mp) {
- zlog_err("%s: PIM hash get failure", __PRETTY_FUNCTION__);
- pim_msdp_peer_free(mp);
- return PIM_MSDP_ERR_OOM;
- }
listnode_add_sort(msdp->peer_list, mp);
if (PIM_DEBUG_MSDP_EVENTS) {