[PATCH 23/44] Staging: bcm: Bcmchar.c: Renamed variable "Bufflen" -> "buff_len"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Renamed variable "Bufflen" -> "buff_len" in
bcm_char_ioctl_reg_read_private().

Signed-off-by: Matthias Beyer <mail@xxxxxxxxxxxxxxxx>
---
 drivers/staging/bcm/Bcmchar.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/staging/bcm/Bcmchar.c b/drivers/staging/bcm/Bcmchar.c
index a39b8b0..59fc757 100644
--- a/drivers/staging/bcm/Bcmchar.c
+++ b/drivers/staging/bcm/Bcmchar.c
@@ -250,7 +250,7 @@ static int bcm_char_ioctl_reg_read_private(void __user *argp,
 	struct bcm_ioctl_buffer io_buff;
 	PCHAR temp_buff;
 	INT status = STATUS_FAILURE;
-	UINT Bufflen;
+	UINT buff_len;
 	u16 temp_value;
 	int bytes;
 
@@ -270,16 +270,16 @@ static int bcm_char_ioctl_reg_read_private(void __user *argp,
 		return -EINVAL;
 	}
 
-	Bufflen = io_buff.OutputLength;
-	temp_value = 4 - (Bufflen % 4);
-	Bufflen += temp_value % 4;
+	buff_len = io_buff.OutputLength;
+	temp_value = 4 - (buff_len % 4);
+	buff_len += temp_value % 4;
 
-	temp_buff = kmalloc(Bufflen, GFP_KERNEL);
+	temp_buff = kmalloc(buff_len, GFP_KERNEL);
 	if (!temp_buff)
 		return -ENOMEM;
 
 	bytes = rdmalt(ad, (UINT)rdm_buff.Register,
-			(PUINT)temp_buff, Bufflen);
+			(PUINT)temp_buff, buff_len);
 	if (bytes > 0) {
 		status = STATUS_SUCCESS;
 		if (copy_to_user(io_buff.OutputBuffer, temp_buff, bytes)) {
-- 
2.0.3

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux