summaryrefslogtreecommitdiff
path: root/mm/shmem.c
diff options
context:
space:
mode:
authorKemeng Shi <shikemeng@huaweicloud.com>2024-07-15 21:05:32 +0800
committerJan Kara <jack@suse.cz>2024-07-22 18:13:44 +0200
commita838e5dca63d1dc701e63b2b1176943c57485c45 (patch)
tree7fcbc957f4ca399d8f3af36aefe932ce0709fd21 /mm/shmem.c
parentd16a5f852025be546b6e4ceef15899db3490f4d7 (diff)
downloadlinux-a838e5dca63d1dc701e63b2b1176943c57485c45.tar.gz
linux-a838e5dca63d1dc701e63b2b1176943c57485c45.tar.bz2
linux-a838e5dca63d1dc701e63b2b1176943c57485c45.zip
quota: remove unneeded return value of register_quota_format
The register_quota_format always returns 0, simply remove unneeded return value. Link: https://patch.msgid.link/20240715130534.2112678-3-shikemeng@huaweicloud.com Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com> Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'mm/shmem.c')
-rw-r--r--mm/shmem.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/mm/shmem.c b/mm/shmem.c
index 2faa9daaf54b..3b922d44e12c 100644
--- a/mm/shmem.c
+++ b/mm/shmem.c
@@ -4818,11 +4818,7 @@ void __init shmem_init(void)
shmem_init_inodecache();
#ifdef CONFIG_TMPFS_QUOTA
- error = register_quota_format(&shmem_quota_format);
- if (error < 0) {
- pr_err("Could not register quota format\n");
- goto out3;
- }
+ register_quota_format(&shmem_quota_format);
#endif
error = register_filesystem(&shmem_fs_type);
@@ -4857,7 +4853,6 @@ out1:
out2:
#ifdef CONFIG_TMPFS_QUOTA
unregister_quota_format(&shmem_quota_format);
-out3:
#endif
shmem_destroy_inodecache();
shm_mnt = ERR_PTR(error);