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 3E466EB64DD for ; Fri, 11 Aug 2023 15:33:46 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id CDA0E828; Fri, 11 Aug 2023 17:32:53 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz CDA0E828 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1691768023; bh=c4lb8zN9J6W1LqHAWpZV6cy0r/dlZ2hnxiK71pL5iXs=; h=Date:From:To:Cc:Subject:In-Reply-To:References:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=a+i5GA1KoKTh26GT97ky2hyS9U0lizi00/Jn1NJEHXbW+58IN5c1puKSML/tlCgjr Todt7cby6fgutoJaAmMf7wrSMKpTwXBP0FX8gVnvON8UoRu2hjnvpomuVn2YS3D0Zn WK5IlMXg4ur8JsPU/WJe8d54gU3y08+IJhJP8MC4= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 537E3F80166; Fri, 11 Aug 2023 17:32:32 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id B056CF800F4; Fri, 11 Aug 2023 17:32:31 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id BD519F80166; Fri, 11 Aug 2023 17:32:25 +0200 (CEST) Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::222]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 587DFF800EE; Fri, 11 Aug 2023 17:32:17 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 587DFF800EE Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=gm1 header.b=D0nEG2BI Received: by mail.gandi.net (Postfix) with ESMTPSA id D8ECD40005; Fri, 11 Aug 2023 15:32:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1691767936; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=odiAeJE+wlZMfX2NdHWqS9fYoT/3pfEqK4fP0gA6bxI=; b=D0nEG2BI2Jq9wVG37EnOmy35e/0lXnivrpveFFbk5th5iFbxDn1eMmajjNgIQGl6DQCCj+ 7W1kvTKoA37a5536v+1o8PqspVcLBi0FVH2ppvLFx53eIH2JmlgTo7w2QFx4aIt2eAPyyS xQR30xTk3REdlehJ8zpIGseCNpjMs7p3dV8ILfI5LMjvwwVHLlui/R1D/rVAamoosXwwzD RNUD7GE5024jyqeDQRRb22JsHMfikcb4WJRhkoQedXPWf/5e+lUc7vEAigYtkeS56TNC4f 5FtseK6P2LRiZT+wHv9wqdua+n2b7zafkWOn9PiciymlTxy1mXK7dURJ2JvrsQ== Date: Fri, 11 Aug 2023 17:32:13 +0200 From: Luca Ceresoli To: Li Zetao Cc: , , , , , , , , , , , , , , , Subject: Re: [PATCH -next 2/2] ASoC: SOF: ipc3: Use devm_kmemdup to replace devm_kmalloc + memcpy Message-ID: <20230811173213.5e21e555@booty> In-Reply-To: <20230810114738.2103792-3-lizetao1@huawei.com> References: <20230810114738.2103792-1-lizetao1@huawei.com> <20230810114738.2103792-3-lizetao1@huawei.com> Organization: Bootlin X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-GND-Sasl: luca.ceresoli@bootlin.com Message-ID-Hash: LBNWEUTDTZDQUFXE2U5MHAJ4ONADJNFN X-Message-ID-Hash: LBNWEUTDTZDQUFXE2U5MHAJ4ONADJNFN X-MailFrom: luca.ceresoli@bootlin.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Thu, 10 Aug 2023 19:47:38 +0800 Li Zetao wrote: > Use the helper function devm_kmemdup() rather than duplicating its > implementation, which helps to enhance code readability. > > Signed-off-by: Li Zetao Reviewed-by: Luca Ceresoli -- Luca Ceresoli, Bootlin Embedded Linux and Kernel engineering https://bootlin.com