The code is returning the group peer data structure, which
is what is happening but we should not have assignment statements
in this return statement for a `struct peer *` return.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
static struct peer *bgp_peer_group_peer_lookup(struct bgp *bgp,
const char *peer_str)
{
- struct peer *peer = NULL;
struct peer_group *group = NULL;
group = peer_group_lookup(bgp, peer_str);
- return peer = group->conf;
+ return group->conf;
}
/*