[PATCH 103/115] staging: ced1401: fix ced_dbg_cmd()

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

 



Rename camel case arguments and locals in function ced_dbg_cmd()

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

diff --git a/drivers/staging/ced1401/ced_ioc.c b/drivers/staging/ced1401/ced_ioc.c
index 54f2e8a..c9bb270 100644
--- a/drivers/staging/ced1401/ced_ioc.c
+++ b/drivers/staging/ced1401/ced_ioc.c
@@ -1178,18 +1178,19 @@ int ced_transfer_flags(struct ced_data *ced)
 static int ced_dbg_cmd(struct ced_data *ced, unsigned char cmd,
 		      unsigned int data)
 {
-	int iReturn;
+	int ret;
+
 	dev_dbg(&ced->interface->dev, "%s: entry\n", __func__);
-	iReturn = usb_control_msg(ced->udev, usb_sndctrlpipe(ced->udev, 0), cmd,
+	ret = usb_control_msg(ced->udev, usb_sndctrlpipe(ced->udev, 0), cmd,
 				  (H_TO_D | VENDOR | DEVREQ),
 				  (unsigned short)data,
 				  (unsigned short)(data >> 16), NULL, 0, HZ);
 						/* allow 1 second timeout */
-	if (iReturn < 0)
+	if (ret < 0)
 		dev_err(&ced->interface->dev, "%s: fail code=%d\n",
-			__func__, iReturn);
+			__func__, ret);
 
-	return iReturn;
+	return ret;
 }
 
 /****************************************************************************
-- 
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