From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2A70BC433F5 for ; Sun, 13 Mar 2022 08:10:55 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 73A8116CD; Sun, 13 Mar 2022 09:10:03 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 73A8116CD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1647159053; bh=VdBeSoLUr/9sB2lqy6G9Flnp3AwBVf790ixuGnanhk8=; h=Date:From:To:Subject:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=nofDSGfYBRcipQHsPW4WMpjI60HjwUmAc0ocTGVUJJVqFNQOP9gqpMetBrjdETjCe 0GrDmQJp5dSt9lYgGySzJ8klF+pIf3ovCP2eNgZsfBIoS+oHcNxBcdoFPtW7PXZ7wu AEZmmso+tVfZS5fAJZAv1LcFGhWduUjct7YXcwA8= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 08D41F80165; Sun, 13 Mar 2022 09:10:03 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 702C7F80310; Sun, 13 Mar 2022 09:10:00 +0100 (CET) Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 5C353F80154 for ; Sun, 13 Mar 2022 09:09:53 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 5C353F80154 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="koBY2n6P"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="mV2u/8Bs" Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 9CC38212C6; Sun, 13 Mar 2022 08:09:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1647158993; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=NeSB+jHq6YcFTSHppR+CSlD97vyl7qDeXaqfoy6cbFY=; b=koBY2n6PTzkyxuUgBZjixpgA31crlNAju/YLchRDI/d04UYCWGTuqZvp06cG3k63B+u8Os 4EnqzNLPdboenPOWfz4VW+/y/ccUdoZpvPDBIisf11sGj2ZiixiuI5Zk8GsvJvymAgRbto K2VwqSxngDIwh5HoqpZGDmX93GJV5/0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1647158993; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=NeSB+jHq6YcFTSHppR+CSlD97vyl7qDeXaqfoy6cbFY=; b=mV2u/8Bsw8T7bo/NI3rX+R+NmmrQ5gcs4N5yhpFbccCHHzonw7soJfxbDZgSorQDEmJ9Io mUs1sEzPIq7+2dBA== Received: from alsa1.suse.de (alsa1.suse.de [10.160.4.42]) by relay2.suse.de (Postfix) with ESMTP id 83175A3B8A; Sun, 13 Mar 2022 08:09:53 +0000 (UTC) Date: Sun, 13 Mar 2022 09:09:53 +0100 Message-ID: From: Takashi Iwai To: Julia Lawall Subject: Re: [PATCH 3/6] ALSA: seq: oss: use kzalloc In-Reply-To: <20220312102705.71413-4-Julia.Lawall@inria.fr> References: <20220312102705.71413-1-Julia.Lawall@inria.fr> <20220312102705.71413-4-Julia.Lawall@inria.fr> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Cc: linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, kernel-janitors@vger.kernel.org, Takashi Iwai X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" On Sat, 12 Mar 2022 11:27:02 +0100, Julia Lawall wrote: > > Use kzalloc instead of kmalloc + memset. > > The semantic patch that makes this change is: > (https://coccinelle.gitlabpages.inria.fr/website/) > > // > @@ > expression res, size, flag; > @@ > - res = kmalloc(size, flag); > + res = kzalloc(size, flag); > ... > - memset(res, 0, size); > // > > Signed-off-by: Julia Lawall Applied, thanks. Takashi