lkml.org 
[lkml]   [2022]   [Mar]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 3/6] ALSA: seq: oss: use kzalloc
From
Date
On Sat, 2022-03-12 at 11:27 +0100, Julia Lawall wrote:
> Use kzalloc instead of kmalloc + memset.
[]
> diff --git a/sound/core/seq/oss/seq_oss_init.c b/sound/core/seq/oss/seq_oss_init.c
[]
> @@ -81,7 +81,6 @@ snd_seq_oss_create_client(void)
> system_client = rc;
>
> /* create annoucement receiver port */

unrelated trivia: typo of announcement above

> - memset(port, 0, sizeof(*port));
> strcpy(port->name, "Receiver");
> port->addr.client = system_client;
> port->capability = SNDRV_SEQ_PORT_CAP_WRITE; /* receive only */
>


\
 
 \ /
  Last update: 2022-03-12 22:44    [W:1.414 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site