staging: emxx_udc: Rename CamelCase variable
authorAfonso Bordado <afonsobordado@az8.co>
Tue, 20 Dec 2016 13:55:06 +0000 (13:55 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Jan 2017 15:42:22 +0000 (16:42 +0100)
The new name complies with the kernel styling guidelines and is more descriptive.

Signed-off-by: Afonso Bordado <afonsobordado@az8.co>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/emxx_udc/emxx_udc.c

index db39f73..eab3dff 100644 (file)
@@ -557,21 +557,17 @@ static int ep0_out_pio(struct nbu2ss_udc *udc, u8 *pBuf, u32 length)
 {
        u32             i;
        int             nret   = 0;
-       u32             iWordLength = 0;
+       u32 numreads = length / sizeof(u32);
        union usb_reg_access *pBuf32 = (union usb_reg_access *)pBuf;
 
        /*------------------------------------------------------------*/
-       /* Read Length */
-       iWordLength = length / sizeof(u32);
-
-       /*------------------------------------------------------------*/
        /* PIO Read */
-       if (iWordLength) {
-               for (i = 0; i < iWordLength; i++) {
+       if (numreads) {
+               for (i = 0; i < numreads; i++) {
                        pBuf32->dw = _nbu2ss_readl(&udc->p_regs->EP0_READ);
                        pBuf32++;
                }
-               nret = iWordLength * sizeof(u32);
+               nret = numreads * sizeof(u32);
        }
 
        return nret;