[PATCH v2 45/60] staging: ced1401: fix ced_start_self_test()

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

 



Rename camel case arguments and locals in function ced_start_self_test()

Signed-off-by: Luca Ellero <luca.ellero@xxxxxxxxxxxxxxxx>
---
 drivers/staging/ced1401/ced_ioc.c |   13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/drivers/staging/ced1401/ced_ioc.c b/drivers/staging/ced1401/ced_ioc.c
index b37cf26..44b4c6e 100644
--- a/drivers/staging/ced1401/ced_ioc.c
+++ b/drivers/staging/ced1401/ced_ioc.c
@@ -1017,7 +1017,7 @@ int ced_state_of_1401(struct ced_data *ced)
 *****************************************************************************/
 int ced_start_self_test(struct ced_data *ced)
 {
-	int nGot;
+	int got;
 	mutex_lock(&ced->io_mutex);
 	dev_dbg(&ced->interface->dev, "%s\n", __func__);
 
@@ -1028,15 +1028,16 @@ int ced_start_self_test(struct ced_data *ced)
 	/* ced_read_write_cancel(pDeviceObject); */
 	ced->dma_flag = MODE_CHAR;	/* Clear DMA mode flags here */
 
-	nGot = usb_control_msg(ced->udev, usb_rcvctrlpipe(ced->udev, 0),
+	got = usb_control_msg(ced->udev, usb_rcvctrlpipe(ced->udev, 0),
 			       DB_SELFTEST, (H_TO_D | VENDOR | DEVREQ),
 			       0, 0, NULL, 0, HZ); /* allow 1 second timeout */
-	ced->self_test_time = jiffies + HZ * 30;	/*  30 seconds into the future */
+	ced->self_test_time = jiffies + HZ * 30;   /* 30 seconds into the    */
+						   /* future                 */
 
 	mutex_unlock(&ced->io_mutex);
-	if (nGot < 0)
-		dev_err(&ced->interface->dev, "%s: err=%d\n", __func__, nGot);
-	return nGot < 0 ? U14ERR_FAIL : U14ERR_NOERROR;
+	if (got < 0)
+		dev_err(&ced->interface->dev, "%s: err=%d\n", __func__, got);
+	return got < 0 ? U14ERR_FAIL : U14ERR_NOERROR;
 }
 
 /****************************************************************************
-- 
1.7.10.4

_______________________________________________
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