staging: exfat: Rename variable 'NumSubdirs' to 'num_subdirs'
authorPragat Pandya <pragat.pandya@gmail.com>
Mon, 10 Feb 2020 18:35:55 +0000 (00:05 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Feb 2020 19:25:43 +0000 (11:25 -0800)
Fix checkpatch warning: Avoid CamelCase
Change all occurrences of identifier "NumSubdirs" to "num_subdirs"

Signed-off-by: Pragat Pandya <pragat.pandya@gmail.com>
Link: https://lore.kernel.org/r/20200210183558.11836-17-pragat.pandya@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/exfat/exfat.h
drivers/staging/exfat/exfat_super.c

index e8e6412a8c113893acc1d3f65f3766050b694a40..40362c41940312b07639e37d539de5747b7e3297 100644 (file)
@@ -267,7 +267,7 @@ struct dir_entry_t {
 
        u32 attr;
        u64 Size;
-       u32 NumSubdirs;
+       u32 num_subdirs;
        struct date_time_t CreateTimestamp;
        struct date_time_t ModifyTimestamp;
        struct date_time_t AccessTimestamp;
index a134b13525f4812c90cec513b4beed959515a88b..1bb0a29701ad9781c3888e141a9a9ef3857a89bf 100644 (file)
@@ -1476,7 +1476,7 @@ static int ffsReadStat(struct inode *inode, struct dir_entry_t *info)
                                ret = count; /* propagate error upward */
                                goto out;
                        }
-                       info->NumSubdirs = count;
+                       info->num_subdirs = count;
 
                        if (p_fs->dev_ejected)
                                ret = -EIO;
@@ -1524,7 +1524,7 @@ static int ffsReadStat(struct inode *inode, struct dir_entry_t *info)
                                          uni_name.name);
        nls_uniname_to_cstring(sb, info->name, &uni_name);
 
-       info->NumSubdirs = 2;
+       info->num_subdirs = 2;
 
        info->Size = exfat_get_entry_size(ep2);
 
@@ -1543,7 +1543,7 @@ static int ffsReadStat(struct inode *inode, struct dir_entry_t *info)
                        ret = count; /* propagate error upward */
                        goto out;
                }
-               info->NumSubdirs += count;
+               info->num_subdirs += count;
        }
 
        if (p_fs->dev_ejected)
@@ -3146,7 +3146,7 @@ static int exfat_fill_inode(struct inode *inode, struct file_id_t *fid)
 
                i_size_write(inode, info.Size);
                EXFAT_I(inode)->mmu_private = i_size_read(inode);
-               set_nlink(inode, info.NumSubdirs);
+               set_nlink(inode, info.num_subdirs);
        } else if (info.attr & ATTR_SYMLINK) { /* symbolic link */
                inode->i_generation |= 1;
                inode->i_mode = exfat_make_mode(sbi, info.attr, 0777);
@@ -3646,7 +3646,7 @@ static int exfat_read_root(struct inode *inode)
        inode->i_mtime = curtime;
        inode->i_atime = curtime;
        inode->i_ctime = curtime;
-       set_nlink(inode, info.NumSubdirs + 2);
+       set_nlink(inode, info.num_subdirs + 2);
 
        return 0;
 }