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:
030b16a
)
caif: replace kmalloc/memset 0 by kzalloc
author
Fabian Frederick
<
[email protected]
>
Mon, 13 Oct 2014 20:21:46 +0000
(22:21 +0200)
committer
David S. Miller
<
[email protected]
>
Tue, 14 Oct 2014 20:04:07 +0000
(16:04 -0400)
Also add blank line after declaration
Signed-off-by: Fabian Frederick <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/caif/cfmuxl.c
patch
|
blob
|
history
diff --git
a/net/caif/cfmuxl.c
b/net/caif/cfmuxl.c
index 8c5d6386319fff399f763f6710e776a186142b41..510aa5a753f02a2301a153dfc1c0da6a68e1cfe0 100644
(file)
--- a/
net/caif/cfmuxl.c
+++ b/
net/caif/cfmuxl.c
@@
-47,10
+47,10
@@
static struct cflayer *get_up(struct cfmuxl *muxl, u16 id);
struct cflayer *cfmuxl_create(void)
{
- struct cfmuxl *this = kmalloc(sizeof(struct cfmuxl), GFP_ATOMIC);
+ struct cfmuxl *this = kzalloc(sizeof(struct cfmuxl), GFP_ATOMIC);
+
if (!this)
return NULL;
- memset(this, 0, sizeof(*this));
this->layer.receive = cfmuxl_receive;
this->layer.transmit = cfmuxl_transmit;
this->layer.ctrlcmd = cfmuxl_ctrlcmd;