projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7bbe08d
)
driver: tty: serial: remove cast for kzalloc return value
author
Zhang Yanfei
<zhangyanfei@cn.fujitsu.com>
Tue, 12 Mar 2013 05:27:29 +0000
(13:27 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Tue, 19 Mar 2013 00:09:37 +0000
(17:09 -0700)
remove cast for kzalloc return value.
Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
Cc: Jiri Slaby <jslaby@suse.cz>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/icom.c
patch
|
blob
|
history
diff --git
a/drivers/tty/serial/icom.c
b/drivers/tty/serial/icom.c
index bc9e6b017b05c24a99f61a13ed78f123c0ccf13d..18ed5aebb166da78f9f10e8f163191e9f97bbc49 100644
(file)
--- 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;