Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a136e99f authored by Jiri Slaby's avatar Jiri Slaby Committed by Linus Torvalds
Browse files

[PATCH] Char: mxser_new, fix sparse warning



Feed NULL instead of 0 where pointer is expected.

Signed-off-by: default avatarJiri Slaby <jirislaby@gmail.com>
Cc: <osv@javad.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 5ff7205d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;