diff options
| author | Karel Zak <kzak@redhat.com> | 2022-10-12 12:23:37 +0200 |
|---|---|---|
| committer | Karel Zak <kzak@redhat.com> | 2023-01-03 12:58:42 +0100 |
| commit | 181397430ae1fd8c8c5d4ad46db731864dfbffbf (patch) | |
| tree | da5907be7fb2ceb0013dce99acb619a4855fe713 /libmount/src/hooks.c | |
| parent | 664d1d4984fd550dca19424167fd1dc6e03df867 (diff) | |
| download | util-linux-181397430ae1fd8c8c5d4ad46db731864dfbffbf.tar.gz | |
libmount: improve context deinitialization
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/hooks.c')
| -rw-r--r-- | libmount/src/hooks.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/libmount/src/hooks.c b/libmount/src/hooks.c index ef52827692..7b1ab7f5a2 100644 --- a/libmount/src/hooks.c +++ b/libmount/src/hooks.c @@ -92,9 +92,6 @@ int mnt_context_deinit_hooksets(struct libmnt_context *cxt) assert(cxt); - if (list_empty(&cxt->hooksets_hooks)) - return 0; - for (i = 0; i < ARRAY_SIZE(hooksets); i++) { const struct libmnt_hookset *hs = hooksets[i]; |
