Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2744335pxp; Mon, 14 Mar 2022 04:09:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxSHECJb+eGGmMZgrSort4i3+oHGFUWY/CRzr089os4qFUCKu9CD5DBO6oYbHCt41eo7vpx X-Received: by 2002:a17:906:9749:b0:6db:ab21:744a with SMTP id o9-20020a170906974900b006dbab21744amr11603787ejy.764.1647256172596; Mon, 14 Mar 2022 04:09:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647256172; cv=none; d=google.com; s=arc-20160816; b=B1mDjDBcYe1gGoqJ1RZUSyGHyRKBYuW5wmVjz+x4pY3XxJ7SPQHDl+0iQUgop9mqkw C3WFjTXbPlVx9U9/pSmvjld1xtkkuUWjB+b8TFP5/b2zl726yZfQ9x0qfDdYb9rJzLUH fNwJp8EVEXS2YRA+Y3P9AfRvdmQZ6tusU/ywH1R99GPix6n4NmaHUA1UAB4hzmVnh2Nd 4JR4Q74TAtn780ssrLgZvI/caQTm2+qd5JxHuz3JQ2zHPqE4onGTMBBqyMtOOhIzqHwd Lp8GHyTBePF2pz8/fa1g6DPgAtZAAWTnICLmaSImoVNIq9AQjXyx8dcz/HldRSKQfzDh 8Lpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature:dkim-signature; bh=NeSB+jHq6YcFTSHppR+CSlD97vyl7qDeXaqfoy6cbFY=; b=eN6Kv3PwE7bPrLNUzglP5+y0XA2SRxlZbLAGKr2V1TYz3SSMhtHWCBCpaS5UjETT5z n/eEeTCFfz0kY4bdOqtacZ/EjFyPPzJyewaCQCiVnMZlkrEOVV1McTkeWVatUTpqgjHw GSALaXRVmwXPXqsiNsjQJvjhS/wKGAWNZ67B+u6gbxD7ZJWUgB0IIRJ/5Hj4RD3AmJFF zCfewJoMblxaKnGCK8YHSvLcvxyWd12+ce2bzDOr3ndA/7WMAzLNkqOtHp+z2OiY/p1Y 5CMJ1qTx2xChscc6zZsms44DpDzScHigo5Dg1V1rzygqpeRfioYMZKzSKeKca/RATy7s JcJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=koBY2n6P; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d6-20020a50cf46000000b0041691b601fdsi10556509edk.260.2022.03.14.04.09.06; Mon, 14 Mar 2022 04:09:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=koBY2n6P; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233803AbiCMILD (ORCPT + 99 others); Sun, 13 Mar 2022 04:11:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230366AbiCMILD (ORCPT ); Sun, 13 Mar 2022 04:11:03 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4A9E8E18E; Sun, 13 Mar 2022 00:09:55 -0800 (PST) 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 Cc: Jaroslav Kysela , kernel-janitors@vger.kernel.org, Takashi Iwai , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org 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 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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