lkml.org 
[lkml]   [2020]   [Feb]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 09/18] staging: exfat: Rename function "ffsTruncateFile" to "ffs_truncate_file"
Date
Fix checkpatch warning: Avoid CamelCase
Change all occurrences of function "ffsTruncateFile" to
"ffs_truncate_file" in source.

Signed-off-by: Pragat Pandya <pragat.pandya@gmail.com>
---
drivers/staging/exfat/exfat_super.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/exfat/exfat_super.c b/drivers/staging/exfat/exfat_super.c
index d4e6f6a210e9..5bbd31e6ba3c 100644
--- a/drivers/staging/exfat/exfat_super.c
+++ b/drivers/staging/exfat/exfat_super.c
@@ -1031,7 +1031,7 @@ static int ffs_write_file(struct inode *inode, struct file_id_t *fid,
return ret;
}

-static int ffsTruncateFile(struct inode *inode, u64 old_size, u64 new_size)
+static int ffs_truncate_file(struct inode *inode, u64 old_size, u64 new_size)
{
s32 num_clusters;
u32 last_clu = CLUSTER_32(0);
@@ -2763,7 +2763,7 @@ static void exfat_truncate(struct inode *inode, loff_t old_size)
if (EXFAT_I(inode)->fid.start_clu == 0)
goto out;

- err = ffsTruncateFile(inode, old_size, i_size_read(inode));
+ err = ffs_truncate_file(inode, old_size, i_size_read(inode));
if (err)
goto out;

--
2.17.1
\
 
 \ /
  Last update: 2020-02-11 13:41    [W:0.228 / U:0.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site