erofs: save one level of indentation

As Christoph said [1], ".. and save one
level of indentation."

[1] https://lore.kernel.org/r/20190829102426.GE20598@infradead.org/
Reported-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
Link: https://lore.kernel.org/r/20190904020912.63925-22-gaoxiang25@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Gao Xiang 2019-09-04 10:09:08 +08:00 committed by Greg Kroah-Hartman
parent 73d03931be
commit 84947eb603
1 changed files with 33 additions and 32 deletions

View File

@ -193,7 +193,9 @@ static int erofs_fill_inode(struct inode *inode, int isdir)
data = page_address(page);
err = erofs_read_inode(inode, data + ofs);
if (!err) {
if (err)
goto out_unlock;
/* setup the new inode */
switch (inode->i_mode & S_IFMT) {
case S_IFREG:
@ -227,7 +229,6 @@ static int erofs_fill_inode(struct inode *inode, int isdir)
goto out_unlock;
}
inode->i_mapping->a_ops = &erofs_raw_access_aops;
}
out_unlock:
unlock_page(page);