diff options
author | Vincent JARDIN <vincent.jardin@6wind.com> | 2017-09-27 23:38:19 +0200 |
---|---|---|
committer | Vincent JARDIN <vincent.jardin@6wind.com> | 2017-10-02 09:14:03 +0200 |
commit | c31a793b486d0bc34e498fdf703fd7120afbecf0 (patch) | |
tree | 12f3ff902c5248f8515ed66eee780bfc11ef4c53 /pimd/pim_nht.c | |
parent | sha256: fix clang warning (diff) | |
download | frr-c31a793b486d0bc34e498fdf703fd7120afbecf0.tar.xz frr-c31a793b486d0bc34e498fdf703fd7120afbecf0.zip |
scan-build: cleanup some warnings
Current cleanup is for unset values or variables that are not used anymore.
Regarding ospfd/ospf_vty.c: argv_find()
we'll never get it NULL, so get coststr = argv[idx]->arg;
Diffstat (limited to 'pimd/pim_nht.c')
-rw-r--r-- | pimd/pim_nht.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pimd/pim_nht.c b/pimd/pim_nht.c index 1e88ff13f..7a380796a 100644 --- a/pimd/pim_nht.c +++ b/pimd/pim_nht.c @@ -194,7 +194,7 @@ int pim_find_or_track_nexthop(struct pim_instance *pim, struct prefix *addr, } if (up != NULL) - up = hash_get(pnc->upstream_hash, up, hash_alloc_intern); + hash_get(pnc->upstream_hash, up, hash_alloc_intern); if (pnc && CHECK_FLAG(pnc->flags, PIM_NEXTHOP_VALID)) { memcpy(out_pnc, pnc, sizeof(struct pim_nexthop_cache)); |