Commit 343fae74 authored by Matthias Beyer's avatar Matthias Beyer Committed by Greg Kroah-Hartman

Staging: bcm: Bcmchar.c: Renamed variable "Bufflen" -> "buff_len"

Renamed variable "Bufflen" -> "buff_len" in
bcm_char_ioctl_reg_read_private().
Signed-off-by: default avatarMatthias Beyer <mail@beyermatthias.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 00c6fbcd
...@@ -250,7 +250,7 @@ static int bcm_char_ioctl_reg_read_private(void __user *argp, ...@@ -250,7 +250,7 @@ static int bcm_char_ioctl_reg_read_private(void __user *argp,
struct bcm_ioctl_buffer io_buff; struct bcm_ioctl_buffer io_buff;
PCHAR temp_buff; PCHAR temp_buff;
INT status = STATUS_FAILURE; INT status = STATUS_FAILURE;
UINT Bufflen; UINT buff_len;
u16 temp_value; u16 temp_value;
int bytes; int bytes;
...@@ -270,16 +270,16 @@ static int bcm_char_ioctl_reg_read_private(void __user *argp, ...@@ -270,16 +270,16 @@ static int bcm_char_ioctl_reg_read_private(void __user *argp,
return -EINVAL; return -EINVAL;
} }
Bufflen = io_buff.OutputLength; buff_len = io_buff.OutputLength;
temp_value = 4 - (Bufflen % 4); temp_value = 4 - (buff_len % 4);
Bufflen += temp_value % 4; buff_len += temp_value % 4;
temp_buff = kmalloc(Bufflen, GFP_KERNEL); temp_buff = kmalloc(buff_len, GFP_KERNEL);
if (!temp_buff) if (!temp_buff)
return -ENOMEM; return -ENOMEM;
bytes = rdmalt(ad, (UINT)rdm_buff.Register, bytes = rdmalt(ad, (UINT)rdm_buff.Register,
(PUINT)temp_buff, Bufflen); (PUINT)temp_buff, buff_len);
if (bytes > 0) { if (bytes > 0) {
status = STATUS_SUCCESS; status = STATUS_SUCCESS;
if (copy_to_user(io_buff.OutputBuffer, temp_buff, bytes)) { if (copy_to_user(io_buff.OutputBuffer, temp_buff, bytes)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment