[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2422fcc6d9a1e03e4dde90ea91327764ab5ee4b5.camel@perches.com>
Date: Sat, 12 Mar 2022 13:43:52 -0800
From: Joe Perches <joe@...ches.com>
To: Julia Lawall <Julia.Lawall@...ia.fr>,
Jaroslav Kysela <perex@...ex.cz>
Cc: kernel-janitors@...r.kernel.org, Takashi Iwai <tiwai@...e.com>,
alsa-devel@...a-project.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 3/6] ALSA: seq: oss: use kzalloc
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 */
>
Powered by blists - more mailing lists