Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 99c4d538 authored by Zhang Yanfei's avatar Zhang Yanfei Committed by Jiri Kosina
Browse files

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



remove cast for kzalloc return value.

Signed-off-by: default avatarZhang 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: default avatarJiri Kosina <jkosina@suse.cz>
parent ee68a3c6
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;