mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
caif: replace kmalloc/memset 0 by kzalloc
Also add blank line after declaration Signed-off-by: Fabian Frederick <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
030b16a0e3
commit
6ff1e1e3c8
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue