Skip to content

Commit

Permalink
caif: replace kmalloc/memset 0 by kzalloc
Browse files Browse the repository at this point in the history
Also add blank line after declaration

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Fabian Frederick authored and David S. Miller committed Oct 14, 2014
1 parent 030b16a commit 6ff1e1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/caif/cfmuxl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6ff1e1e

Please sign in to comment.