aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/ubifs/super.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c
index 667c72d8a5cc..d87b0cf5f661 100644
--- a/fs/ubifs/super.c
+++ b/fs/ubifs/super.c
@@ -1032,8 +1032,6 @@ static int mount_ubifs(struct ubifs_info *c)
1032 1032
1033 /* Create background thread */ 1033 /* Create background thread */
1034 c->bgt = kthread_create(ubifs_bg_thread, c, c->bgt_name); 1034 c->bgt = kthread_create(ubifs_bg_thread, c, c->bgt_name);
1035 if (!c->bgt)
1036 c->bgt = ERR_PTR(-EINVAL);
1037 if (IS_ERR(c->bgt)) { 1035 if (IS_ERR(c->bgt)) {
1038 err = PTR_ERR(c->bgt); 1036 err = PTR_ERR(c->bgt);
1039 c->bgt = NULL; 1037 c->bgt = NULL;
@@ -1347,8 +1345,6 @@ static int ubifs_remount_rw(struct ubifs_info *c)
1347 1345
1348 /* Create background thread */ 1346 /* Create background thread */
1349 c->bgt = kthread_create(ubifs_bg_thread, c, c->bgt_name); 1347 c->bgt = kthread_create(ubifs_bg_thread, c, c->bgt_name);
1350 if (!c->bgt)
1351 c->bgt = ERR_PTR(-EINVAL);
1352 if (IS_ERR(c->bgt)) { 1348 if (IS_ERR(c->bgt)) {
1353 err = PTR_ERR(c->bgt); 1349 err = PTR_ERR(c->bgt);
1354 c->bgt = NULL; 1350 c->bgt = NULL;