driver: tty: vt: remove cast for kmalloc return value

remove cast for kmalloc return value.

Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
Cc: Jiri Slaby <jslaby@suse.cz>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Zhang Yanfei 2013-03-12 13:29:32 +08:00 committed by Greg Kroah-Hartman
parent b9a129f481
commit 8358f6242d
1 changed files with 1 additions and 2 deletions

View File

@ -194,8 +194,7 @@ static void set_inverse_transl(struct vc_data *conp, struct uni_pagedir *p, int
q = p->inverse_translations[i]; q = p->inverse_translations[i];
if (!q) { if (!q) {
q = p->inverse_translations[i] = (unsigned char *) q = p->inverse_translations[i] = kmalloc(MAX_GLYPH, GFP_KERNEL);
kmalloc(MAX_GLYPH, GFP_KERNEL);
if (!q) return; if (!q) return;
} }
memset(q, 0, MAX_GLYPH); memset(q, 0, MAX_GLYPH);