Attention is currently required from: Arne Schwabe.
Hello Arne Schwabe,
I'd like you to do a code review.
Please visit
https://gerrit.openvpn.net/c/openvpn/+/2337?usp=email
to review the following change.
Change subject: list: drop redundant check in hash_iterator_next()
......................................................................
list: drop redundant check in hash_iterator_next()
hi->elem is set from b->list, which was just checked to be non-NULL.
Change-Id: Icb913d6e890607c79a45a0e63e9a1ba44151e8e2
Signed-off-by: Razvan Cojocaru <[email protected]>
---
M src/openvpn/list.c
1 file changed, 3 insertions(+), 6 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/37/2337/1
diff --git a/src/openvpn/list.c b/src/openvpn/list.c
index dcd59d7..505be30 100644
--- a/src/openvpn/list.c
+++ b/src/openvpn/list.c
@@ -294,12 +294,9 @@
{
hash_iterator_lock(hi, b);
hi->elem = b->list;
- if (hi->elem)
- {
- ret = hi->elem;
- hash_iterator_advance(hi);
- break;
- }
+ ret = hi->elem;
+ hash_iterator_advance(hi);
+ break;
}
}
}
--
To view, visit https://gerrit.openvpn.net/c/openvpn/+/2337?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Icb913d6e890607c79a45a0e63e9a1ba44151e8e2
Gerrit-Change-Number: 2337
Gerrit-PatchSet: 1
Gerrit-Owner: Răzvan Cojocaru <[email protected]>
Gerrit-Reviewer: Arne Schwabe <[email protected]>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: Arne Schwabe <[email protected]>
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel