Skip to content

Commit

Permalink
driver: tty: serial: remove cast for kzalloc return value
Browse files Browse the repository at this point in the history
remove cast for kzalloc return value.

Signed-off-by: Zhang 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: Jiri Kosina <jkosina@suse.cz>
  • Loading branch information
Zhang Yanfei authored and Jiri Kosina committed Mar 18, 2013
1 parent ee68a3c commit 99c4d53
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/tty/serial/icom.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 99c4d53

Please sign in to comment.