driver: tty: vt: remove cast for kmalloc return value
authorZhang Yanfei <zhangyanfei@cn.fujitsu.com>
Tue, 12 Mar 2013 05:29:32 +0000 (13:29 +0800)
committerJiri Kosina <jkosina@suse.cz>
Mon, 18 Mar 2013 13:15:57 +0000 (14:15 +0100)
remove cast for kmalloc return value.

Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jiri Slaby <jslaby@suse.cz>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/tty/vt/consolemap.c

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