summaryrefslogtreecommitdiffstats
path: root/src/partition/repart.c
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2024-08-30 12:15:15 +0200
committerDaan De Meyer <daan.j.demeyer@gmail.com>2024-08-30 12:15:36 +0200
commit9023266a0ef568cdd78fff2a150ec372a74778ca (patch)
treec33d4e24342c5b48b4af0aad6772e327bbfd4ef3 /src/partition/repart.c
parentrepart: Fix memory leak (diff)
downloadsystemd-9023266a0ef568cdd78fff2a150ec372a74778ca.tar.xz
systemd-9023266a0ef568cdd78fff2a150ec372a74778ca.zip
repart: Remove unused Context argument from make_subvolumes_set()
Diffstat (limited to 'src/partition/repart.c')
-rw-r--r--src/partition/repart.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/partition/repart.c b/src/partition/repart.c
index 00b73904a3..07029cb142 100644
--- a/src/partition/repart.c
+++ b/src/partition/repart.c
@@ -4820,7 +4820,6 @@ static int add_subvolume_path(const char *path, Set **subvolumes) {
}
static int make_subvolumes_set(
- Context *context,
const Partition *p,
const char *source,
const char *target,
@@ -4828,7 +4827,6 @@ static int make_subvolumes_set(
_cleanup_set_free_ Set *subvolumes = NULL;
int r;
- assert(context);
assert(p);
assert(target);
assert(ret);
@@ -4918,7 +4916,7 @@ static int do_copy_files(Context *context, Partition *p, const char *root) {
if (r < 0)
return r;
- r = make_subvolumes_set(context, p, *source, *target, &subvolumes_by_source_inode);
+ r = make_subvolumes_set(p, *source, *target, &subvolumes_by_source_inode);
if (r < 0)
return r;