From: Victor Fusco Date: Sat, 10 Sep 2005 07:26:38 +0000 (-0700) Subject: [PATCH] char/n_tty: fix sparse warnings (__nocast type) X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=621a4d1a823e1ec631fbfbe6e53ad036e2d2abc6;p=linux-beck.git [PATCH] char/n_tty: fix sparse warnings (__nocast type) Fix the sparse warning "implicit cast to nocast type" Signed-off-by: Victor Fusco Signed-off-by: Domen Puncer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/char/n_tty.c b/drivers/char/n_tty.c index 09103b3d8f05..c9bdf544ed2c 100644 --- a/drivers/char/n_tty.c +++ b/drivers/char/n_tty.c @@ -62,7 +62,7 @@ static inline unsigned char *alloc_buf(void) { - int prio = in_interrupt() ? GFP_ATOMIC : GFP_KERNEL; + unsigned int prio = in_interrupt() ? GFP_ATOMIC : GFP_KERNEL; if (PAGE_SIZE != N_TTY_BUF_SIZE) return kmalloc(N_TTY_BUF_SIZE, prio);