chiark / gitweb /
treewide: another round of simplifications
[elogind.git] / src / libudev / libudev-device.c
index 400fb74d83e204bdb5686da872b9b5705fa2c4e3..5f196bd9b8aa7dea78255117bd1f9d963cf2a380 100644 (file)
@@ -534,10 +534,8 @@ int udev_device_read_db(struct udev_device *udev_device, const char *dbfile)
         }
 
         f = fopen(dbfile, "re");
-        if (f == NULL) {
-                log_debug_errno(errno, "no db file to read %s: %m", dbfile);
-                return -errno;
-        }
+        if (f == NULL)
+                return log_debug_errno(errno, "no db file to read %s: %m", dbfile);
 
         /* devices with a database entry are initialized */
         udev_device->is_initialized = true;