Browse Source

[PATCH] Char: mxser_new, fix sparse warning

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>
Jiri Slaby 18 years ago
parent
commit
a136e99f12
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/char/mxser_new.c

+ 1 - 1
drivers/char/mxser_new.c

@@ -1708,7 +1708,7 @@ static int mxser_ioctl(struct tty_struct *tty, struct file *file,
 
 
 		info->speed = speed;
 		info->speed = speed;
 		spin_lock_irqsave(&info->slock, flags);
 		spin_lock_irqsave(&info->slock, flags);
-		mxser_change_speed(info, 0);
+		mxser_change_speed(info, NULL);
 		spin_unlock_irqrestore(&info->slock, flags);
 		spin_unlock_irqrestore(&info->slock, flags);
 
 
 		return 0;
 		return 0;