[NET]: Conversions from kmalloc+memset to k(z|c)alloc.
Signed-off-by: Panagiotis Issaris <takis@issaris.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
a0ee7c70b2
commit
0da974f4f3
@@ -401,12 +401,10 @@ dongle_t *irda_device_dongle_init(struct net_device *dev, int type)
|
||||
}
|
||||
|
||||
/* Allocate dongle info for this instance */
|
||||
dongle = kmalloc(sizeof(dongle_t), GFP_KERNEL);
|
||||
dongle = kzalloc(sizeof(dongle_t), GFP_KERNEL);
|
||||
if (!dongle)
|
||||
goto out;
|
||||
|
||||
memset(dongle, 0, sizeof(dongle_t));
|
||||
|
||||
/* Bind the registration info to this particular instance */
|
||||
dongle->issue = reg;
|
||||
dongle->dev = dev;
|
||||
|
Reference in New Issue
Block a user