[vlc-commits] microdns: Remove useless check

Hugo Beauzée-Luyssen git at videolan.org
Tue Feb 14 15:35:06 CET 2017


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Feb 14 15:32:01 2017 +0100| [4ec7900920796aa54e8233c957c65523f7a8e83c] | committer: Hugo Beauzée-Luyssen

microdns: Remove useless check

CID #1402708

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4ec7900920796aa54e8233c957c65523f7a8e83c
---

 modules/services_discovery/microdns.c | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/modules/services_discovery/microdns.c b/modules/services_discovery/microdns.c
index 86b2a50..2e7f940 100644
--- a/modules/services_discovery/microdns.c
+++ b/modules/services_discovery/microdns.c
@@ -464,13 +464,10 @@ new_entries_rd_cb( void *p_this, int i_status, const struct rr_entry *p_entries
             const struct rr_data_txt *p_txt = p_entry->data.TXT;
             while( p_txt && ( psz_model == NULL || psz_icon == NULL ) )
             {
-                if( p_txt->txt )
-                {
-                    if( !strncmp("md=", p_txt->txt, 3) )
-                        psz_model = p_txt->txt + 3;
-                    else if( !strncmp("ic=", p_txt->txt, 3) )
-                        psz_icon = p_txt->txt + 3;
-                }
+                if( !strncmp("md=", p_txt->txt, 3) )
+                    psz_model = p_txt->txt + 3;
+                else if( !strncmp("ic=", p_txt->txt, 3) )
+                    psz_icon = p_txt->txt + 3;
                 p_txt = p_txt->next;
             }
         }



More information about the vlc-commits mailing list