mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-14 17:53:39 +00:00
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>
This commit is contained in:
parent
7bbe08d6b8
commit
b9a129f481
@ -1415,8 +1415,7 @@ static int icom_alloc_adapter(struct icom_adapter
|
||||
struct icom_adapter *cur_adapter_entry;
|
||||
struct list_head *tmp;
|
||||
|
||||
icom_adapter = (struct icom_adapter *)
|
||||
kzalloc(sizeof(struct icom_adapter), GFP_KERNEL);
|
||||
icom_adapter = kzalloc(sizeof(struct icom_adapter), GFP_KERNEL);
|
||||
|
||||
if (!icom_adapter) {
|
||||
return -ENOMEM;
|
||||
|
Loading…
x
Reference in New Issue
Block a user