chiark / gitweb /
test: allow deletion of temporary files from normal fs
[elogind.git] / src / readahead / readahead-replay.c
index 6e6db601d45a101356ee9cadb907104810ba184d..a1ac6b0c918d804bf1eaa3f797f70c97cf99c42f 100644 (file)
@@ -150,12 +150,12 @@ static int replay(const char *root) {
         block_bump_request_nr(root);
 
         if (asprintf(&pack_fn, "%s/.readahead", root) < 0) {
-                log_error("Out of memory");
-                r = -ENOMEM;
+                r = log_oom();
                 goto finish;
         }
 
-        if ((!(pack = fopen(pack_fn, "re")))) {
+        pack = fopen(pack_fn, "re");
+        if (!pack) {
                 if (errno == ENOENT)
                         log_debug("No pack file found.");
                 else {