staging: erofs: match alignment with open parentheses
authorBhanusree Pola <bhanusreemahesh@gmail.com>
Tue, 19 Feb 2019 09:25:25 +0000 (14:55 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Feb 2019 14:18:49 +0000 (15:18 +0100)
Align code with open parantheses to improve the readability.
Issue found using checkpatch.pl

Signed-off-by: Bhanusree Pola <bhanusreemahesh@gmail.com>
Reviewed-by: Gao Xiang <gaoxiang25@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/erofs/dir.c

index 833f052f79d04c06eaffadcb17775f84df0c06b0..e1955703ab8f4a7401318535c9c293d684ebecdf 100644 (file)
@@ -24,8 +24,8 @@ static const unsigned char erofs_filetype_table[EROFS_FT_MAX] = {
 };
 
 static int erofs_fill_dentries(struct dir_context *ctx,
-       void *dentry_blk, unsigned int *ofs,
-       unsigned int nameoff, unsigned int maxsize)
+                              void *dentry_blk, unsigned int *ofs,
+                              unsigned int nameoff, unsigned int maxsize)
 {
        struct erofs_dirent *de = dentry_blk;
        const struct erofs_dirent *end = dentry_blk + nameoff;
@@ -104,9 +104,9 @@ static int erofs_readdir(struct file *f, struct dir_context *ctx)
                nameoff = le16_to_cpu(de->nameoff);
 
                if (unlikely(nameoff < sizeof(struct erofs_dirent) ||
-                       nameoff >= PAGE_SIZE)) {
+                            nameoff >= PAGE_SIZE)) {
                        errln("%s, invalid de[0].nameoff %u",
-                               __func__, nameoff);
+                             __func__, nameoff);
 
                        err = -EIO;
                        goto skip_this;