[07/18] staging: exfat: Rename variable "LogSector" to "log_sector"
diff mbox series

Message ID 20200211123859.10429-8-pragat.pandya@gmail.com
State New
Headers show
Series
  • Rename some identifier and functions.
Related show

Commit Message

Pragat Pandya Feb. 11, 2020, 12:38 p.m. UTC
Fix checkpatch warning: Avoid CamelCase
Change all occurrences of identifier "LogSector" to "log_sector" in
source.

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

Patch
diff mbox series

diff --git a/drivers/staging/exfat/exfat_super.c b/drivers/staging/exfat/exfat_super.c
index c7f56f77e4bb..3393c97bd9cb 100644
--- a/drivers/staging/exfat/exfat_super.c
+++ b/drivers/staging/exfat/exfat_super.c
@@ -668,7 +668,7 @@  static int ffs_read_file(struct inode *inode, struct file_id_t *fid, void *buffe
 	s32 offset, sec_offset, clu_offset;
 	u32 clu;
 	int ret = 0;
-	sector_t LogSector;
+	sector_t log_sector;
 	u64 oneblkread, read_bytes;
 	struct buffer_head *tmp_bh = NULL;
 	struct super_block *sb = inode->i_sb;
@@ -746,20 +746,20 @@  static int ffs_read_file(struct inode *inode, struct file_id_t *fid, void *buffe
 		/* byte offset in sector */
 		offset &= p_bd->sector_size_mask;
 
-		LogSector = START_SECTOR(clu) + sec_offset;
+		log_sector = START_SECTOR(clu) + sec_offset;
 
 		oneblkread = (u64)(p_bd->sector_size - offset);
 		if (oneblkread > count)
 			oneblkread = count;
 
 		if ((offset == 0) && (oneblkread == p_bd->sector_size)) {
-			if (sector_read(sb, LogSector, &tmp_bh, 1) !=
+			if (sector_read(sb, log_sector, &tmp_bh, 1) !=
 			    0)
 				goto err_out;
 			memcpy((char *)buffer + read_bytes,
 			       (char *)tmp_bh->b_data, (s32)oneblkread);
 		} else {
-			if (sector_read(sb, LogSector, &tmp_bh, 1) !=
+			if (sector_read(sb, log_sector, &tmp_bh, 1) !=
 			    0)
 				goto err_out;
 			memcpy((char *)buffer + read_bytes,
@@ -796,7 +796,7 @@  static int ffsWriteFile(struct inode *inode, struct file_id_t *fid,
 	s32 num_clusters, num_alloc, num_alloced = (s32)~0;
 	int ret = 0;
 	u32 clu, last_clu;
-	sector_t LogSector;
+	sector_t log_sector;
 	u64 oneblkwrite, write_bytes;
 	struct chain_t new_clu;
 	struct timestamp_t tm;
@@ -932,19 +932,19 @@  static int ffsWriteFile(struct inode *inode, struct file_id_t *fid,
 		/* byte offset in sector    */
 		offset &= p_bd->sector_size_mask;
 
-		LogSector = START_SECTOR(clu) + sec_offset;
+		log_sector = START_SECTOR(clu) + sec_offset;
 
 		oneblkwrite = (u64)(p_bd->sector_size - offset);
 		if (oneblkwrite > count)
 			oneblkwrite = count;
 
 		if ((offset == 0) && (oneblkwrite == p_bd->sector_size)) {
-			if (sector_read(sb, LogSector, &tmp_bh, 0) !=
+			if (sector_read(sb, log_sector, &tmp_bh, 0) !=
 			    0)
 				goto err_out;
 			memcpy((char *)tmp_bh->b_data,
 			       (char *)buffer + write_bytes, (s32)oneblkwrite);
-			if (sector_write(sb, LogSector, tmp_bh, 0) !=
+			if (sector_write(sb, log_sector, tmp_bh, 0) !=
 			    0) {
 				brelse(tmp_bh);
 				goto err_out;
@@ -952,18 +952,18 @@  static int ffsWriteFile(struct inode *inode, struct file_id_t *fid,
 		} else {
 			if ((offset > 0) ||
 			    ((fid->rwoffset + oneblkwrite) < fid->size)) {
-				if (sector_read(sb, LogSector, &tmp_bh, 1) !=
+				if (sector_read(sb, log_sector, &tmp_bh, 1) !=
 				    0)
 					goto err_out;
 			} else {
-				if (sector_read(sb, LogSector, &tmp_bh, 0) !=
+				if (sector_read(sb, log_sector, &tmp_bh, 0) !=
 				    0)
 					goto err_out;
 			}
 
 			memcpy((char *)tmp_bh->b_data + offset,
 			       (char *)buffer + write_bytes, (s32)oneblkwrite);
-			if (sector_write(sb, LogSector, tmp_bh, 0) !=
+			if (sector_write(sb, log_sector, tmp_bh, 0) !=
 			    0) {
 				brelse(tmp_bh);
 				goto err_out;