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

Commit 621a4d1a authored by Victor Fusco's avatar Victor Fusco Committed by Linus Torvalds
Browse files

[PATCH] char/n_tty: fix sparse warnings (__nocast type)



Fix the sparse warning "implicit cast to nocast type"

Signed-off-by: default avatarVictor Fusco <victor@cetuc.puc-rio.br>
Signed-off-by: default avatarDomen Puncer <domen@coderock.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent b2d55073
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);