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: 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>
This commit is contained in:
parent
a53640c3f2
commit
eb2c560f9f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue