diff options
author | Zhang Yanfei <zhangyanfei@cn.fujitsu.com> | 2013-03-12 06:27:29 +0100 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2013-03-18 14:15:59 +0100 |
commit | 99c4d538854833c1be1e7449605de2f39519299e (patch) | |
tree | 25b34e2bbba2472f1bc4677c5fed4b65e7ed9ec8 /drivers | |
parent | fs: befs: remove cast for kmalloc return value (diff) | |
download | linux-99c4d538854833c1be1e7449605de2f39519299e.tar.xz linux-99c4d538854833c1be1e7449605de2f39519299e.zip |
driver: tty: serial: remove cast for kzalloc return value
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/tty/serial/icom.c | 3 |
1 files changed, 1 insertions, 2 deletions
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; |