[PATCH] isdn: replace kmalloc+memset with kzalloc
Acked-by: Karsten Keil <kkeil@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
0b2dd130a5
commit
41f96935b4
@@ -331,12 +331,10 @@ static void *bsd_alloc (struct isdn_ppp_comp_data *data)
|
||||
* Allocate the main control structure for this instance.
|
||||
*/
|
||||
maxmaxcode = MAXCODE(bits);
|
||||
db = (struct bsd_db *) kmalloc (sizeof (struct bsd_db),GFP_KERNEL);
|
||||
db = kzalloc (sizeof (struct bsd_db),GFP_KERNEL);
|
||||
if (!db)
|
||||
return NULL;
|
||||
|
||||
memset (db, 0, sizeof(struct bsd_db));
|
||||
|
||||
db->xmit = data->flags & IPPP_COMP_FLAG_XMIT;
|
||||
decomp = db->xmit ? 0 : 1;
|
||||
|
||||
|
Reference in New Issue
Block a user