driver: tty: serial: remove cast for kzalloc return value
authorZhang Yanfei <zhangyanfei@cn.fujitsu.com>
Tue, 12 Mar 2013 05:27:29 +0000 (13:27 +0800)
committerJiri Kosina <jkosina@suse.cz>
Mon, 18 Mar 2013 13:15:59 +0000 (14:15 +0100)
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>
drivers/tty/serial/icom.c

index bc9e6b0..18ed5ae 100644 (file)
@@ -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;