[PATCH 03/44] Staging: bcm: Bcmchar.c: Renamed variable "pReadData" -> "read_data"

Matthias Beyer mail at beyermatthias.de
Sun Aug 3 15:37:03 UTC 2014


Renamed variable "pReadData" -> "read_data" in bcm_handle_nvm_read_cmd().

Signed-off-by: Matthias Beyer <mail at beyermatthias.de>
---
 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 4b02a41..8a07118 100644
--- a/drivers/staging/bcm/Bcmchar.c
+++ b/drivers/staging/bcm/Bcmchar.c
@@ -3,7 +3,7 @@
 #include "headers.h"
 
 static int bcm_handle_nvm_read_cmd(struct bcm_mini_adapter *ad,
-				   PUCHAR pReadData,
+				   PUCHAR read_data,
 				   struct bcm_nvm_readwrite *stNVMReadWrite)
 {
 	INT Status = STATUS_FAILURE;
@@ -17,23 +17,23 @@ static int bcm_handle_nvm_read_cmd(struct bcm_mini_adapter *ad,
 			DBG_TYPE_OTHERS, OSAL_DBG, DBG_LVL_ALL,
 			"Device is in Idle/Shutdown Mode\n");
 		up(&ad->NVMRdmWrmLock);
-		kfree(pReadData);
+		kfree(read_data);
 		return -EACCES;
 	}
 
-	Status = BeceemNVMRead(ad, (PUINT)pReadData,
+	Status = BeceemNVMRead(ad, (PUINT)read_data,
 			       stNVMReadWrite->uiOffset,
 			       stNVMReadWrite->uiNumBytes);
 	up(&ad->NVMRdmWrmLock);
 
 	if (Status != STATUS_SUCCESS) {
-		kfree(pReadData);
+		kfree(read_data);
 		return Status;
 	}
 
-	if (copy_to_user(stNVMReadWrite->pBuffer, pReadData,
+	if (copy_to_user(stNVMReadWrite->pBuffer, read_data,
 			stNVMReadWrite->uiNumBytes)) {
-		kfree(pReadData);
+		kfree(read_data);
 		return -EFAULT;
 	}
 
-- 
2.0.3



More information about the devel mailing list