]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
repart: rename variables in config_parse_weight()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 5 Sep 2022 16:42:44 +0000 (01:42 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 8 Sep 2022 20:35:40 +0000 (05:35 +0900)
This is for Weight= or PaddingWeight=, not for Priority=.

No actual code changes, just refactoring.

src/partition/repart.c

index 1206fbfb1df85e76bc7c94701579f7874eae09f7..2ce9bfe2c76ec95f557d65bc3c4264863d6a4d29 100644 (file)
@@ -1081,11 +1081,10 @@ static int config_parse_weight(
                 void *data,
                 void *userdata) {
 
-        uint32_t *priority = data, v;
+        uint32_t *w = ASSERT_PTR(data), v;
         int r;
 
         assert(rvalue);
-        assert(priority);
 
         r = safe_atou32(rvalue, &v);
         if (r < 0) {
@@ -1100,7 +1099,7 @@ static int config_parse_weight(
                 return 0;
         }
 
-        *priority = v;
+        *w = v;
         return 0;
 }