vlc | branch: master | Rémi Denis-Courmont <r...@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 *);
 

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to