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.stricted.de/?a=commitdiff_plain;h=b9a129f4813ef5dea8da4670e100f8ba89abebea;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git driver: tty: serial: remove cast for kzalloc return value remove cast for kzalloc return value. Signed-off-by: Zhang Yanfei Cc: Jiri Slaby Cc: Andrew Morton Signed-off-by: Greg Kroah-Hartman --- 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;