From: Yu Watanabe Date: Wed, 16 Mar 2022 16:44:31 +0000 (+0900) Subject: repart: use assert() when no state is changed X-Git-Tag: v251-rc1~130 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ac33e147546464ae3ccaa378beda389507984285;p=thirdparty%2Fsystemd.git repart: use assert() when no state is changed --- diff --git a/src/partition/repart.c b/src/partition/repart.c index 8345b6f5827..52fd0436e35 100644 --- a/src/partition/repart.c +++ b/src/partition/repart.c @@ -1778,11 +1778,11 @@ static int context_load_partition_table( } sz = fdisk_partition_get_size(p); - assert_se(sz <= UINT64_MAX/secsz); + assert(sz <= UINT64_MAX/secsz); sz *= secsz; start = fdisk_partition_get_start(p); - assert_se(start <= UINT64_MAX/secsz); + assert(start <= UINT64_MAX/secsz); start *= secsz; partno = fdisk_partition_get_partno(p); @@ -4799,7 +4799,7 @@ static int determine_auto_size(Context *c) { uint64_t sum; Partition *p; - assert_se(c); + assert(c); sum = round_up_size(GPT_METADATA_SIZE, 4096); @@ -4981,7 +4981,7 @@ static int run(int argc, char *argv[]) { /* Flush out everything again, and let's grow the file first, then start fresh */ context_unload_partition_table(context); - assert_se(arg_size != UINT64_MAX); + assert(arg_size != UINT64_MAX); r = resize_backing_fd( node, &backing_fd,