Commit cbebe5d0 authored by Bhanusree Pola's avatar Bhanusree Pola Committed by Greg Kroah-Hartman

staging: erofs: match alignment with open parentheses

Align code with open parantheses to improve the readability.
Issue found using checkpatch.pl
Signed-off-by: default avatarBhanusree Pola <bhanusreemahesh@gmail.com>
Reviewed-by: default avatarGao Xiang <gaoxiang25@huawei.com>
Reviewed-by: default avatarChao Yu <yuchao0@huawei.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent fb4415a1
...@@ -24,8 +24,8 @@ static const unsigned char erofs_filetype_table[EROFS_FT_MAX] = { ...@@ -24,8 +24,8 @@ static const unsigned char erofs_filetype_table[EROFS_FT_MAX] = {
}; };
static int erofs_fill_dentries(struct dir_context *ctx, static int erofs_fill_dentries(struct dir_context *ctx,
void *dentry_blk, unsigned int *ofs, void *dentry_blk, unsigned int *ofs,
unsigned int nameoff, unsigned int maxsize) unsigned int nameoff, unsigned int maxsize)
{ {
struct erofs_dirent *de = dentry_blk; struct erofs_dirent *de = dentry_blk;
const struct erofs_dirent *end = dentry_blk + nameoff; const struct erofs_dirent *end = dentry_blk + nameoff;
...@@ -104,9 +104,9 @@ static int erofs_readdir(struct file *f, struct dir_context *ctx) ...@@ -104,9 +104,9 @@ static int erofs_readdir(struct file *f, struct dir_context *ctx)
nameoff = le16_to_cpu(de->nameoff); nameoff = le16_to_cpu(de->nameoff);
if (unlikely(nameoff < sizeof(struct erofs_dirent) || if (unlikely(nameoff < sizeof(struct erofs_dirent) ||
nameoff >= PAGE_SIZE)) { nameoff >= PAGE_SIZE)) {
errln("%s, invalid de[0].nameoff %u", errln("%s, invalid de[0].nameoff %u",
__func__, nameoff); __func__, nameoff);
err = -EIO; err = -EIO;
goto skip_this; goto skip_this;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment