]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/libudev/libudev-device-private.c
treewide: another round of simplifications
[thirdparty/systemd.git] / src / libudev / libudev-device-private.c
index be3f17fd472fd7848fc2c55c10c0c2f981b63df2..fb4c6e2940af511710ba1f023f39ed00047ab39e 100644 (file)
@@ -128,10 +128,8 @@ int udev_device_update_db(struct udev_device *udev_device)
         strscpyl(filename_tmp, sizeof(filename_tmp), filename, ".tmp", NULL);
         mkdir_parents(filename_tmp, 0755);
         f = fopen(filename_tmp, "we");
-        if (f == NULL) {
-                log_debug_errno(errno, "unable to create temporary db file '%s': %m", filename_tmp);
-                return -errno;
-        }
+        if (f == NULL)
+                return log_debug_errno(errno, "unable to create temporary db file '%s': %m", filename_tmp);
 
         /*
          * set 'sticky' bit to indicate that we should not clean the