From: Yu Watanabe Date: Mon, 5 Sep 2022 16:42:44 +0000 (+0900) Subject: repart: rename variables in config_parse_weight() X-Git-Tag: v252-rc1~222^2~14 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f126038f833bda55046134c3692ea2e6c75e40c3;p=thirdparty%2Fsystemd.git repart: rename variables in config_parse_weight() This is for Weight= or PaddingWeight=, not for Priority=. No actual code changes, just refactoring. --- diff --git a/src/partition/repart.c b/src/partition/repart.c index 1206fbfb1df..2ce9bfe2c76 100644 --- a/src/partition/repart.c +++ b/src/partition/repart.c @@ -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; }