lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200211123859.10429-8-pragat.pandya@gmail.com>
Date:   Tue, 11 Feb 2020 18:08:48 +0530
From:   Pragat Pandya <pragat.pandya@...il.com>
To:     gregkh@...uxfoundation.org, valdis.kletnieks@...edu
Cc:     devel@...verdev.osuosl.or, linux-kernel@...r.kernel.org,
        skhan@...uxfoundation.org, linux-fsdevel@...r.kernel.org,
        linux-kernel-mentees@...ts.linuxfoundation.org,
        Pragat Pandya <pragat.pandya@...il.com>
Subject: [PATCH 07/18] staging: exfat: Rename variable "LogSector" to "log_sector"

Fix checkpatch warning: Avoid CamelCase
Change all occurrences of identifier "LogSector" to "log_sector" in
source.

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

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;
-- 
2.17.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ