mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
staging: ced1401: fix ced_get_out_buf_space()
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>
This commit is contained in:
parent
7692320c08
commit
347ee20b40
1 changed files with 10 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
Loading…
Reference in a new issue