From 892a2b1aeeda130ba08ab3dab8524112f9d8ea4b Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Mon, 9 Aug 2010 19:16:39 +0300 Subject: [PATCH] udev: minor simplification --- modules/services_discovery/udev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.2