summaryrefslogtreecommitdiffstats
path: root/fs/jbd2/journal.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2010-12-18 13:39:38 -0500
committerTheodore Ts'o <tytso@mit.edu>2010-12-18 13:39:38 -0500
commitb7271b0a39947f757d7969f6150dcb16c1976b91 (patch)
tree298f473585df2253af8897cad7ff2bb6a49a6b14 /fs/jbd2/journal.c
parent9a4f6271b68b9693290963b97b320d2e6e6f3446 (diff)
downloadop-kernel-dev-b7271b0a39947f757d7969f6150dcb16c1976b91.zip
op-kernel-dev-b7271b0a39947f757d7969f6150dcb16c1976b91.tar.gz
jbd2: simplify return path of journal_init_common
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/jbd2/journal.c')
-rw-r--r--fs/jbd2/journal.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/jbd2/journal.c b/fs/jbd2/journal.c
index 06dfd77..2447bd8 100644
--- a/fs/jbd2/journal.c
+++ b/fs/jbd2/journal.c
@@ -828,7 +828,7 @@ static journal_t * journal_init_common (void)
journal = kzalloc(sizeof(*journal), GFP_KERNEL);
if (!journal)
- goto fail;
+ return NULL;
init_waitqueue_head(&journal->j_wait_transaction_locked);
init_waitqueue_head(&journal->j_wait_logspace);
@@ -853,14 +853,12 @@ static journal_t * journal_init_common (void)
err = jbd2_journal_init_revoke(journal, JOURNAL_REVOKE_DEFAULT_HASH);
if (err) {
kfree(journal);
- goto fail;
+ return NULL;
}
spin_lock_init(&journal->j_history_lock);
return journal;
-fail:
- return NULL;
}
/* jbd2_journal_init_dev and jbd2_journal_init_inode:
OpenPOWER on IntegriCloud