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-Tag: upstream/snapshot3+hdmi~5289^2~49 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b9a129f4813ef5dea8da4670e100f8ba89abebea;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.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 bc9e6b01..18ed5ae 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;