From 02f1d35cc475691106d6b06c4945fef75a59bd89 Mon Sep 17 00:00:00 2001 From: Luca Ellero Date: Thu, 10 Jul 2014 11:04:05 +0200 Subject: [PATCH] staging: ced1401: fix ced_dbg_cmd() Rename camel case arguments and locals in function ced_dbg_cmd() Signed-off-by: Luca Ellero Signed-off-by: Greg Kroah-Hartman --- 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 0778cf04160a..46cc29392e55 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; } /**************************************************************************** -- 2.30.2