sap: dead code
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 25 Aug 2014 18:13:10 +0000 (21:13 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 25 Aug 2014 18:13:10 +0000 (21:13 +0300)
modules/services_discovery/sap.c

index 430d234..5477924 100644 (file)
@@ -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! ***");