[vlc-commits] tls: remove unneeded error check
Rémi Denis-Courmont
git at videolan.org
Sat Sep 26 21:23:32 CEST 2020
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Sep 26 20:23:27 2020 +0300| [0ab2b6c48fc3271e19d26b94e4e3f9f8b125fefe] | committer: Rémi Denis-Courmont
tls: remove unneeded error check
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0ab2b6c48fc3271e19d26b94e4e3f9f8b125fefe
---
src/network/tls.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/src/network/tls.c b/src/network/tls.c
index 27ec95e6f5..25f1c95bdc 100644
--- a/src/network/tls.c
+++ b/src/network/tls.c
@@ -61,9 +61,6 @@ vlc_tls_ServerCreate (vlc_object_t *obj, const char *cert_path,
module_t **mods;
ssize_t total = vlc_module_match("tls server", "any", false, &mods, NULL);
- if (unlikely(total < 0))
- return NULL;
-
for (ssize_t i = 0; i < total; i++) {
int (*probe)(vlc_tls_server_t *, const char *, const char *);
@@ -103,9 +100,6 @@ vlc_tls_client_t *vlc_tls_ClientCreate(vlc_object_t *obj)
module_t **mods;
ssize_t total = vlc_module_match("tls client", "any", false, &mods, NULL);
- if (unlikely(total < 0))
- return NULL;
-
for (ssize_t i = 0; i < total; i++) {
int (*probe)(vlc_tls_client_t *);
More information about the vlc-commits
mailing list