Commit 6ff1e1e3 authored by Fabian Frederick's avatar Fabian Frederick Committed by David S. Miller

caif: replace kmalloc/memset 0 by kzalloc

Also add blank line after declaration
Signed-off-by: default avatarFabian Frederick <>
Signed-off-by: default avatarDavid S. Miller <>
parent 030b16a0
......@@ -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;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment