]> git.sesse.net Git - vlc/commitdiff
udev: minor simplification
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 9 Aug 2010 16:16:39 +0000 (19:16 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 9 Aug 2010 16:22:32 +0000 (19:22 +0300)
modules/services_discovery/udev.c

index 650059b9432786207b31ea72573f3f72aaa98023..95b6b1a8288cce931af8cdb04218600bbcea9d2d 100644 (file)
@@ -538,7 +538,7 @@ static char *disc_get_mrl (struct udev_device *dev)
     if (val && !strcmp (val, "blank"))
         return NULL; /* ignore empty drives and virgin recordable discs */
 
-    const char *scheme = "invalid";
+    const char *scheme = NULL;
     val = udev_device_get_property_value (dev,
                                           "ID_CDROM_MEDIA_TRACK_COUNT_AUDIO");
     if (val && atoi (val))
@@ -558,7 +558,7 @@ static char *disc_get_mrl (struct udev_device *dev)
 
     /* We didn't get any property that could tell we have optical disc
        that we can play */
-    if( !strcmp( scheme, "invalid" ) )
+    if (scheme == NULL)
         return NULL;
 
     val = udev_device_get_devnode (dev);