chiark / gitweb /
support acpi firmware performance data (FPDT)
[elogind.git] / src / core / load-fragment.c
index cfc6f078a653c6e24ab2073149ee7796cf126956..74454abe49888bce1232ce9504e0fc07a9aa589d 100644 (file)
@@ -2036,14 +2036,11 @@ int config_parse_memory_limit(
                 void *userdata) {
 
         CGroupContext *c = data;
-        uint64_t *limit;
         off_t bytes;
         int r;
 
-        limit = streq(lvalue, "MemoryLimit") ? &c->memory_limit : &c->memory_soft_limit;
-
         if (isempty(rvalue)) {
-                *limit = (uint64_t) -1;
+                c->memory_limit = (uint64_t) -1;
                 return 0;
         }
 
@@ -2056,7 +2053,7 @@ int config_parse_memory_limit(
                 return 0;
         }
 
-        *limit = (uint64_t) bytes;
+        c->memory_limit = (uint64_t) bytes;
         return 0;
 }