Skip to content

Commit 8358f62

Browse files
Zhang Yanfeigregkh
authored andcommitted
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>
1 parent b9a129f commit 8358f62

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎drivers/tty/vt/consolemap.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,7 @@ static void set_inverse_transl(struct vc_data *conp, struct uni_pagedir *p, int
194194
q = p->inverse_translations[i];
195195

196196
if (!q) {
197-
q = p->inverse_translations[i] = (unsigned char *)
198-
kmalloc(MAX_GLYPH, GFP_KERNEL);
197+
q = p->inverse_translations[i] = kmalloc(MAX_GLYPH, GFP_KERNEL);
199198
if (!q) return;
200199
}
201200
memset(q, 0, MAX_GLYPH);

0 commit comments

Comments
 (0)