}
/* create a new port */
- new_port = snd_kcalloc(sizeof(client_port_t), GFP_KERNEL);
+ new_port = kcalloc(1, sizeof(*new_port), GFP_KERNEL);
if (! new_port) {
snd_printd("malloc failed for registering client port\n");
return NULL; /* failure, out of memory */
unsigned long flags;
int exclusive;
- subs = snd_kcalloc(sizeof(*subs), GFP_KERNEL);
+ subs = kcalloc(1, sizeof(*subs), GFP_KERNEL);
if (! subs)
return -ENOMEM;