Skip to content

Commit

Permalink
[PATCH] Char: mxser_new, fix sparse warning
Browse files Browse the repository at this point in the history
Feed NULL instead of 0 where pointer is expected.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Cc: <osv@javad.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Jiri Slaby authored and Linus Torvalds committed Feb 11, 2007
1 parent 5ff7205 commit a136e99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/mxser_new.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a136e99

Please sign in to comment.