Skip to content

Commit b9a129f

Browse files
Zhang Yanfeigregkh
authored andcommitted
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>
1 parent 7bbe08d commit b9a129f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎drivers/tty/serial/icom.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1415,8 +1415,7 @@ static int icom_alloc_adapter(struct icom_adapter
14151415
struct icom_adapter *cur_adapter_entry;
14161416
struct list_head *tmp;
14171417

1418-
icom_adapter = (struct icom_adapter *)
1419-
kzalloc(sizeof(struct icom_adapter), GFP_KERNEL);
1418+
icom_adapter = kzalloc(sizeof(struct icom_adapter), GFP_KERNEL);
14201419

14211420
if (!icom_adapter) {
14221421
return -ENOMEM;

0 commit comments

Comments
 (0)