提交 c100a3f1 编写于 作者: G Gimcuan Hui 提交者: Greg Kroah-Hartman

tty: serial: jsm: change the type of local variable

The return type of jsm_get_mstat was int, and the local var result
was for the return should be int, make the change.

This patch fixes the checkpatch.pl warning:
Prefer 'unsigned int' to bare use of 'unsigned'.
Signed-off-by: NGimcuan Hui <gimcuan@gmail.com>
Acked-by: NGuilherme G. Piccoli <gpiccoli@linux.vnet.ibm.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 9ce99a3a
......@@ -36,7 +36,7 @@ static void jsm_carrier(struct jsm_channel *ch);
static inline int jsm_get_mstat(struct jsm_channel *ch)
{
unsigned char mstat;
unsigned result;
int result;
jsm_dbg(IOCTL, &ch->ch_bd->pci_dev, "start\n");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册