lkml.org 
[lkml]   [2008]   [Apr]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 4/4] drivers: atm, char fix integer as NULL pointer warnings
> diff --git a/drivers/char/tty_io.c b/drivers/char/tty_io.c
> index 4d3c701..98b65a2 100644
> --- a/drivers/char/tty_io.c
> +++ b/drivers/char/tty_io.c
> @@ -1180,7 +1180,7 @@ struct tty_driver *tty_find_polling_driver(char *name, int *line)
> if (*str == ',')
> str++;
> if (*str == '\0')
> - str = 0;
> + str = NULL;
>
> if (tty_line >= 0 && tty_line <= p->num && p->poll_init &&
> !p->poll_init(p, tty_line, str)) {

Acked-by: Alan Cox <alan@redhat.com>


\
 
 \ /
  Last update: 2008-05-01 01:43    [W:0.094 / U:0.204 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site