tty: dont needlessly cast kmalloc() return value

kmalloc() hands us a void pointer, we don't need to cast it.

Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Jesper Juhl and committed by
Linus Torvalds
abcb1ff3 87bd1e9a

+2 -4
+2 -4
drivers/char/tty_io.c
··· 2063 } 2064 2065 if (!*tp_loc) { 2066 - tp = (struct ktermios *) kmalloc(sizeof(struct ktermios), 2067 - GFP_KERNEL); 2068 if (!tp) 2069 goto free_mem_out; 2070 *tp = driver->init_termios; ··· 2093 } 2094 2095 if (!*o_tp_loc) { 2096 - o_tp = (struct ktermios *) 2097 - kmalloc(sizeof(struct ktermios), GFP_KERNEL); 2098 if (!o_tp) 2099 goto free_mem_out; 2100 *o_tp = driver->other->init_termios;
··· 2063 } 2064 2065 if (!*tp_loc) { 2066 + tp = kmalloc(sizeof(struct ktermios), GFP_KERNEL); 2067 if (!tp) 2068 goto free_mem_out; 2069 *tp = driver->init_termios; ··· 2094 } 2095 2096 if (!*o_tp_loc) { 2097 + o_tp = kmalloc(sizeof(struct ktermios), GFP_KERNEL); 2098 if (!o_tp) 2099 goto free_mem_out; 2100 *o_tp = driver->other->init_termios;