Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

driver: tty: serial: remove cast for kzalloc return value

remove cast for kzalloc 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>

authored by

Zhang Yanfei and committed by
Greg Kroah-Hartman
b9a129f4 7bbe08d6

+1 -2
+1 -2
drivers/tty/serial/icom.c
··· 1415 1415 struct icom_adapter *cur_adapter_entry; 1416 1416 struct list_head *tmp; 1417 1417 1418 - icom_adapter = (struct icom_adapter *) 1419 - kzalloc(sizeof(struct icom_adapter), GFP_KERNEL); 1418 + icom_adapter = kzalloc(sizeof(struct icom_adapter), GFP_KERNEL); 1420 1419 1421 1420 if (!icom_adapter) { 1422 1421 return -ENOMEM;