diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2006-07-09 12:14:22 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-07-09 12:14:22 -0700 |
commit | 1b30dd359ebec22d035e8b145751319f63772ca1 (patch) | |
tree | 1efbdc5573940817dac79672357e1c2fa1ed6a28 /net/ax25/af_ax25.c | |
parent | 24781734643ea2e9fd864f58000e47793e2dcb04 (diff) | |
download | kernel_samsung_smdk4412-1b30dd359ebec22d035e8b145751319f63772ca1.zip kernel_samsung_smdk4412-1b30dd359ebec22d035e8b145751319f63772ca1.tar.gz kernel_samsung_smdk4412-1b30dd359ebec22d035e8b145751319f63772ca1.tar.bz2 |
[AX.25]: Use kzalloc
Replace kzalloc instead of kmalloc + memset.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ax25/af_ax25.c')
-rw-r--r-- | net/ax25/af_ax25.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ax25/af_ax25.c b/net/ax25/af_ax25.c index 10a3c0a..f12be2a 100644 --- a/net/ax25/af_ax25.c +++ b/net/ax25/af_ax25.c @@ -486,10 +486,9 @@ ax25_cb *ax25_create_cb(void) { ax25_cb *ax25; - if ((ax25 = kmalloc(sizeof(*ax25), GFP_ATOMIC)) == NULL) + if ((ax25 = kzalloc(sizeof(*ax25), GFP_ATOMIC)) == NULL) return NULL; - memset(ax25, 0x00, sizeof(*ax25)); atomic_set(&ax25->refcount, 1); skb_queue_head_init(&ax25->write_queue); |