提交 a136e99f 编写于 作者: J Jiri Slaby 提交者: Linus Torvalds

[PATCH] Char: mxser_new, fix sparse warning

Feed NULL instead of 0 where pointer is expected.
Signed-off-by: NJiri Slaby <jirislaby@gmail.com>
Cc: <osv@javad.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 5ff7205d
......@@ -1708,7 +1708,7 @@ static int mxser_ioctl(struct tty_struct *tty, struct file *file,
info->speed = speed;
spin_lock_irqsave(&info->slock, flags);
mxser_change_speed(info, 0);
mxser_change_speed(info, NULL);
spin_unlock_irqrestore(&info->slock, flags);
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册