From: Luca Ellero Date: Thu, 10 Jul 2014 09:04:05 +0000 (+0200) Subject: staging: ced1401: fix ced_dbg_cmd() X-Git-Tag: firefly_0821_release~176^2~3491^2~978 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=02f1d35cc475691106d6b06c4945fef75a59bd89;p=firefly-linux-kernel-4.4.55.git 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 --- 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; } /****************************************************************************