Commit 2459d8e4 authored by Luca Ellero's avatar Luca Ellero Committed by Greg Kroah-Hartman

staging: ced1401: fix ced_read_word()

Rename camel case arguments and locals in function ced_read_word()
Signed-off-by: default avatarLuca Ellero <luca.ellero@brickedbrain.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 858166f9
......@@ -959,15 +959,16 @@ static bool ced_read_char(unsigned char *character, char *buf,
**
** ced_read_word
**
** Reads a word from the 1401, just uses ced_read_char twice; passes on any error
** Reads a word from the 1401, just uses ced_read_char twice;
** passes on any error
**
*****************************************************************************/
static bool ced_read_word(unsigned short *pWord, char *pBuf, unsigned int *pdDone,
unsigned int dGot)
static bool ced_read_word(unsigned short *word, char *buf, unsigned int *n_done,
unsigned int got)
{
if (ced_read_char((unsigned char *)pWord, pBuf, pdDone, dGot))
return ced_read_char(((unsigned char *)pWord) + 1, pBuf, pdDone,
dGot);
if (ced_read_char((unsigned char *)word, buf, n_done, got))
return ced_read_char(((unsigned char *)word) + 1, buf, n_done,
got);
else
return false;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment