提交 99c4d538 编写于 作者: Z Zhang Yanfei 提交者: Jiri Kosina

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

remove cast for kzalloc return value.
Signed-off-by: NZhang 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>
Cc: linux-serial@vger.kernel.org
Signed-off-by: NJiri Kosina <jkosina@suse.cz>
上级 ee68a3c6
...@@ -1415,8 +1415,7 @@ static int icom_alloc_adapter(struct icom_adapter ...@@ -1415,8 +1415,7 @@ static int icom_alloc_adapter(struct icom_adapter
struct icom_adapter *cur_adapter_entry; struct icom_adapter *cur_adapter_entry;
struct list_head *tmp; struct list_head *tmp;
icom_adapter = (struct icom_adapter *) icom_adapter = kzalloc(sizeof(struct icom_adapter), GFP_KERNEL);
kzalloc(sizeof(struct icom_adapter), GFP_KERNEL);
if (!icom_adapter) { if (!icom_adapter) {
return -ENOMEM; return -ENOMEM;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册