diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-11-11 21:21:49 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-12-21 20:26:15 -0500 |
| commit | 27bc3ae3d4bca97ebaeda698cca25e3b4d8959b3 (patch) | |
| tree | c51e690d2b06e341989b0c110ee9d54592bddf6d /pimd/pim_msdp.c | |
| parent | f0242f68c9372d12bbd990ffec2d06df8c42fb19 (diff) | |
pimd: Removing impossible code
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>
Diffstat (limited to 'pimd/pim_msdp.c')
| -rw-r--r-- | pimd/pim_msdp.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/pimd/pim_msdp.c b/pimd/pim_msdp.c index 8e933222c6..43e2e888f5 100644 --- a/pimd/pim_msdp.c +++ b/pimd/pim_msdp.c @@ -995,11 +995,6 @@ pim_msdp_peer_new(struct in_addr peer_addr, struct in_addr local_addr, /* 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) { |
