Skip to content

Commit

Permalink
[PATCH] char/n_tty: fix sparse warnings (__nocast type)
Browse files Browse the repository at this point in the history
Fix the sparse warning "implicit cast to nocast type"

Signed-off-by: Victor Fusco <victor@cetuc.puc-rio.br>
Signed-off-by: Domen Puncer <domen@coderock.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Victor Fusco authored and Linus Torvalds committed Sep 10, 2005
1 parent b2d5507 commit 621a4d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/n_tty.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 621a4d1

Please sign in to comment.