mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 12:44:55 +00:00
bgpd: fix coverity warning
`oly` is already dereferenced two lines earlier and is always passed to the function. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
This commit is contained in:
parent
c36a440cba
commit
a09811ff67
@ -63,10 +63,8 @@ int argv_find_and_parse_oly_idx(struct cmd_token **argv, int argc, int *oly_idx,
|
|||||||
enum overlay_index_type *oly)
|
enum overlay_index_type *oly)
|
||||||
{
|
{
|
||||||
*oly = OVERLAY_INDEX_TYPE_NONE;
|
*oly = OVERLAY_INDEX_TYPE_NONE;
|
||||||
if (argv_find(argv, argc, "gateway-ip", oly_idx)) {
|
if (argv_find(argv, argc, "gateway-ip", oly_idx))
|
||||||
if (oly)
|
*oly = OVERLAY_INDEX_GATEWAY_IP;
|
||||||
*oly = OVERLAY_INDEX_GATEWAY_IP;
|
|
||||||
}
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user