From: Zhang Yanfei Date: Tue, 12 Mar 2013 05:27:29 +0000 (+0800) Subject: driver: tty: serial: remove cast for kzalloc return value X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=99c4d538854833c1be1e7449605de2f39519299e;p=linux-beck.git driver: tty: serial: remove cast for kzalloc return value remove cast for kzalloc return value. Signed-off-by: Zhang Yanfei Cc: Greg Kroah-Hartman Cc: Jiri Slaby Cc: Andrew Morton Cc: linux-serial@vger.kernel.org Signed-off-by: Jiri Kosina --- diff --git a/drivers/tty/serial/icom.c b/drivers/tty/serial/icom.c index bc9e6b017b05..18ed5aebb166 100644 --- a/drivers/tty/serial/icom.c +++ b/drivers/tty/serial/icom.c @@ -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;