[PATCH 20/44] Staging: bcm: Bcmchar.c: Renamed variable "sRdmBuffer" -> "rdm_buff"
Matthias Beyer
mail at beyermatthias.de
Sun Aug 3 15:37:20 UTC 2014
Renamed variable "sRdmBuffer" -> "rdm_buff" in
bcm_char_ioctl_reg_read_private().
Signed-off-by: Matthias Beyer <mail at beyermatthias.de>
---
drivers/staging/bcm/Bcmchar.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/staging/bcm/Bcmchar.c b/drivers/staging/bcm/Bcmchar.c
index 0511298..d69b139 100644
--- a/drivers/staging/bcm/Bcmchar.c
+++ b/drivers/staging/bcm/Bcmchar.c
@@ -246,7 +246,7 @@ static ssize_t bcm_char_read(struct file *filp,
static int bcm_char_ioctl_reg_read_private(void __user *argp,
struct bcm_mini_adapter *ad)
{
- struct bcm_rdm_buffer sRdmBuffer = {0};
+ struct bcm_rdm_buffer rdm_buff = {0};
struct bcm_ioctl_buffer IoBuffer;
PCHAR temp_buff;
INT Status = STATUS_FAILURE;
@@ -258,10 +258,10 @@ static int bcm_char_ioctl_reg_read_private(void __user *argp,
if (copy_from_user(&IoBuffer, argp, sizeof(struct bcm_ioctl_buffer)))
return -EFAULT;
- if (IoBuffer.InputLength > sizeof(sRdmBuffer))
+ if (IoBuffer.InputLength > sizeof(rdm_buff))
return -EINVAL;
- if (copy_from_user(&sRdmBuffer, IoBuffer.InputBuffer,
+ if (copy_from_user(&rdm_buff, IoBuffer.InputBuffer,
IoBuffer.InputLength))
return -EFAULT;
@@ -278,7 +278,7 @@ static int bcm_char_ioctl_reg_read_private(void __user *argp,
if (!temp_buff)
return -ENOMEM;
- bytes = rdmalt(ad, (UINT)sRdmBuffer.Register,
+ bytes = rdmalt(ad, (UINT)rdm_buff.Register,
(PUINT)temp_buff, Bufflen);
if (bytes > 0) {
Status = STATUS_SUCCESS;
--
2.0.3
More information about the devel
mailing list