mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
[NET]: Conversions from kmalloc+memset to k(z|c)alloc.
Signed-off-by: Panagiotis Issaris <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
a0ee7c70b2
commit
0da974f4f3
94 changed files with 154 additions and 334 deletions
|
|
@ -115,14 +115,12 @@ static struct lapb_cb *lapb_devtostruct(struct net_device *dev)
|
|||
*/
|
||||
static struct lapb_cb *lapb_create_cb(void)
|
||||
{
|
||||
struct lapb_cb *lapb = kmalloc(sizeof(*lapb), GFP_ATOMIC);
|
||||
struct lapb_cb *lapb = kzalloc(sizeof(*lapb), GFP_ATOMIC);
|
||||
|
||||
|
||||
if (!lapb)
|
||||
goto out;
|
||||
|
||||
memset(lapb, 0x00, sizeof(*lapb));
|
||||
|
||||
skb_queue_head_init(&lapb->write_queue);
|
||||
skb_queue_head_init(&lapb->ack_queue);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue