[vlc-commits] sap: dead code

Rémi Denis-Courmont git at videolan.org
Mon Aug 25 20:13:14 CEST 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Aug 25 21:13:10 2014 +0300| [b744e8fce4a843782a82454e649a6d3048fd176a] | committer: Rémi Denis-Courmont

sap: dead code

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

 modules/services_discovery/sap.c |    8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/modules/services_discovery/sap.c b/modules/services_discovery/sap.c
index 430d234..5477924 100644
--- a/modules/services_discovery/sap.c
+++ b/modules/services_discovery/sap.c
@@ -1449,12 +1449,8 @@ static sdp_t *ParseSDP (vlc_object_t *p_obj, const char *psz_sdp)
                 if (cat == 'm')
                     goto media;
 
-                if (cat != 'm')
-                {
-                    msg_Dbg (p_obj, "unexpected SDP line: 0x%02x", (int)cat);
-                    goto error;
-                }
-                break;
+                msg_Dbg (p_obj, "unexpected SDP line: 0x%02x", (int)cat);
+                goto error;
 
             default:
                 msg_Err (p_obj, "*** BUG in SDP parser! ***");



More information about the vlc-commits mailing list