summaryrefslogtreecommitdiff
path: root/fs/ubifs/ubifs.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ubifs/ubifs.c')
-rw-r--r--fs/ubifs/ubifs.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/ubifs/ubifs.c b/fs/ubifs/ubifs.c
index d917863..32f9ff8 100644
--- a/fs/ubifs/ubifs.c
+++ b/fs/ubifs/ubifs.c
@@ -147,7 +147,10 @@ int __init ubifs_compressors_init(void)
if (err)
return err;
- ubifs_compressors[UBIFS_COMPR_NONE] = &none_compr;
+ err = compr_init(&none_compr);
+ if (err)
+ return err;
+
return 0;
}