]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/basic/cpu-set-util.c
tree-wide: use TAKE_PTR() and TAKE_FD() macros
[thirdparty/systemd.git] / src / basic / cpu-set-util.c
index 9f0a61a18ea50ee893c2928fa4092e0451c38d9a..818cb38081bf99302adeea2d1acf57ac0f6852e8 100644 (file)
@@ -111,10 +111,8 @@ int parse_cpu_set_internal(
         }
 
         /* On success, sets *cpu_set and returns ncpus for the system. */
-        if (c) {
-                *cpu_set = c;
-                c = NULL;
-        }
+        if (c)
+                *cpu_set = TAKE_PTR(c);
 
         return (int) ncpus;
 }