]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
staging: ced1401: fix ced_get_out_buf_space()
authorLuca Ellero <luca.ellero@brickedbrain.com>
Thu, 10 Jul 2014 09:02:19 +0000 (11:02 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Jul 2014 22:09:26 +0000 (15:09 -0700)
Rename camel case arguments and locals in function ced_get_out_buf_space()

Signed-off-by: Luca Ellero <luca.ellero@brickedbrain.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ced1401/ced_ioc.c

index d7645c4d5cce1631104f90cccae9f1b9da2c79c3..3f8bf6dd7070700e0a8a2053c1ce8983c518b4a7 100644 (file)
@@ -585,13 +585,19 @@ int ced_line_count(struct ced_data *ced)
 *****************************************************************************/
 int ced_get_out_buf_space(struct ced_data *ced)
 {
-       int iReturn;
+       int ret;
+
        mutex_lock(&ced->io_mutex);     /*  Protect disconnect from new i/o */
+
        ced_send_chars(ced);            /*  send any buffered chars */
-       iReturn = (int)(OUTBUF_SZ - ced->num_output); /* no lock needed for single read */
-       dev_dbg(&ced->interface->dev, "%s: %d\n", __func__, iReturn);
+
+        /* no lock needed for single read */
+       ret = (int)(OUTBUF_SZ - ced->num_output);
+
+       dev_dbg(&ced->interface->dev, "%s: %d\n", __func__, ret);
+
        mutex_unlock(&ced->io_mutex);   /*  Protect disconnect from new i/o */
-       return iReturn;
+       return ret;
 }
 
 /****************************************************************************