diff options
author | Donald Sharp <sharpd@nvidia.com> | 2020-10-11 17:13:33 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2020-10-11 17:14:45 +0200 |
commit | 62270cc3ee99318cbddd3000af4debee35c058c0 (patch) | |
tree | 74e3239b7417485b3866d6b2b1c52b3d2b406a5a /ospf6d/ospf6_lsa.c | |
parent | zebra: zevpn cannot be null passed into zebra_evpn_es_evi_show_one_evpn (diff) | |
download | frr-62270cc3ee99318cbddd3000af4debee35c058c0.tar.xz frr-62270cc3ee99318cbddd3000af4debee35c058c0.zip |
ospf6d: Make ospf6_lsa_lock follow normal FRR pattern
The normal ospf6_lsa_lock call should return the pointer
to the lock data structure we are holding. This is the
normal pattern for locking a data structure in FRR.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'ospf6d/ospf6_lsa.c')
-rw-r--r-- | ospf6d/ospf6_lsa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ospf6d/ospf6_lsa.c b/ospf6d/ospf6_lsa.c index 9e7479c79..058284f5e 100644 --- a/ospf6d/ospf6_lsa.c +++ b/ospf6d/ospf6_lsa.c @@ -601,10 +601,10 @@ struct ospf6_lsa *ospf6_lsa_copy(struct ospf6_lsa *lsa) } /* increment reference counter of struct ospf6_lsa */ -void ospf6_lsa_lock(struct ospf6_lsa *lsa) +struct ospf6_lsa *ospf6_lsa_lock(struct ospf6_lsa *lsa) { lsa->lock++; - return; + return lsa; } /* decrement reference counter of struct ospf6_lsa */ |