From: RĂ©mi Denis-Courmont Date: Mon, 9 Aug 2010 16:16:39 +0000 (+0300) Subject: udev: minor simplification X-Git-Tag: 1.2.0-pre1~5513 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=892a2b1aeeda130ba08ab3dab8524112f9d8ea4b;p=vlc udev: minor simplification --- diff --git a/modules/services_discovery/udev.c b/modules/services_discovery/udev.c index 650059b943..95b6b1a828 100644 --- a/modules/services_discovery/udev.c +++ b/modules/services_discovery/udev.c @@ -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);