Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1919179pxp; Sun, 13 Mar 2022 04:11:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfvf9sCNUULq5bekaZi3/Jf+Z4lJcgDI/CNXE2YR7HYBb0f04L+FJhtvM4gaMZWyLTPTfJ X-Received: by 2002:a17:906:a0ce:b0:6d1:cb30:3b3b with SMTP id bh14-20020a170906a0ce00b006d1cb303b3bmr15110750ejb.582.1647169914297; Sun, 13 Mar 2022 04:11:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647169914; cv=none; d=google.com; s=arc-20160816; b=HwH9xKGWCQRsLAGXkeh2do/OqgBPidInEkrFJKud9koI8wMj2is1rc/F8rmnlaJR43 EM6v1Rb1GMMc039dxUH9LXWRytXJyLij+7RnXGdC2h9wFrTe50ccqyJSn9xkXb3xKrjJ dAfU62Asxe6Ex8FBD7FHaMk8waobimj12dTmmuTuezs8vsvF33PDMOszd5VMS3qYhTtF D9HNCdjOKaplDQc6mb0bOKor8MJOjey/mU7dw04KmnukE5zLVU9End8wOS2uP2p9Kr9r 3zdmRx8vuHfGDUdM962++N11PXcKb6s+llb9YEM5HDmPYMPoUNOPXo+59I4bR2VHLP1c hNFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=JTVIIjw5gQHM8SQEudDTImbZjSs+49OOwBAnbnXbFog=; b=ekNchIGybvwKD1w65bOkvFx4xeUrwu3DKCTEm2/f9X++IBcB8n69N1XAigviOU8ueU viJRgyH7tw67O87ews/6O5zgFxqp4py/7uMwylfHDFOWE91qkptO83G2IYoKo0fdMkxB qkFs5n82S66WT6u1b/cu3gBMjBjtNSHXkl/gVpq5lwt25SFtYlNo49O3bbM7nduuMmMl vMVLAYSG0BI7O2UtlSlnCChrI7S5NcdcgyX9rNLjed2U2P4O+k6Xic/Bo5dUiu8vRNrB LDael0+l0pDhCswE/kukDFRWOT6Rz5uQCs4ZMio8DY25AgwM8+w9WwUG4wd1TAQxCouQ XdZg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 28-20020a17090602dc00b006cf6e2597desi7994704ejk.562.2022.03.13.04.11.27; Sun, 13 Mar 2022 04:11:54 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232763AbiCLVpE (ORCPT + 99 others); Sat, 12 Mar 2022 16:45:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232749AbiCLVpD (ORCPT ); Sat, 12 Mar 2022 16:45:03 -0500 Received: from relay3.hostedemail.com (relay3.hostedemail.com [64.99.140.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A13C643EDE; Sat, 12 Mar 2022 13:43:55 -0800 (PST) Received: from omf20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 9E35F23501; Sat, 12 Mar 2022 21:43:54 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf20.hostedemail.com (Postfix) with ESMTPA id 5FE732002B; Sat, 12 Mar 2022 21:43:53 +0000 (UTC) Message-ID: <2422fcc6d9a1e03e4dde90ea91327764ab5ee4b5.camel@perches.com> Subject: Re: [PATCH 3/6] ALSA: seq: oss: use kzalloc From: Joe Perches To: Julia Lawall , Jaroslav Kysela Cc: kernel-janitors@vger.kernel.org, Takashi Iwai , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Date: Sat, 12 Mar 2022 13:43:52 -0800 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> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.40.4-1ubuntu2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 5FE732002B X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Stat-Signature: rmt9obkyouuykyseiymery8o93ewmsek X-Rspamd-Server: rspamout01 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX1+wmoUH95/RP/dF0B8Uoo7RJ+6BRXnnwI0= X-HE-Tag: 1647121433-91170 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, 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 */ >