Received: by 2002:a05:7412:1492:b0:e2:908c:2ebd with SMTP id s18csp793918rdh; Wed, 23 Aug 2023 15:32:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHxgkpKi71e11Ht6p1GYI7S14Kv+aR/vmcs0QV7BTwTpnWhhssSSIHYl6LxPId1mK6CH8DH X-Received: by 2002:a05:6402:510:b0:522:2111:1063 with SMTP id m16-20020a056402051000b0052221111063mr10588852edv.18.1692829948685; Wed, 23 Aug 2023 15:32:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692829948; cv=none; d=google.com; s=arc-20160816; b=J6Lx0b8hqYo06A1vOwal4Dmhvcqat4qZxen61lUIZZJCgtwaXrExufRrJFGvcA8ohq pQp8HFKFeqFvbY7xWtqs46VQjYRyYexQ1ApOPtJbua6EmvLx0JvPFa4rBrkMlZYmrCqx 0fG+IAUG1BL9T6zP5ijtpP6CZH4KWmCn8iBeRiq7MopAANFaiiCwXrMACJzZm6nIFRYe eQwSQV4HZWzupzeYjdPWI29H5mErfYxtCQLDsPxwKSCNpmFrhM6OBHcVdIZcGcARXBvd Pq8RQD+FvlkE2iZcHGZ41QFWaBmfW4ibq6s0buDGT0SEDZ/zhqplGqO2txiYdSZVrp95 8aJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:user-agent:cc:to:references :in-reply-to:from:subject:content-transfer-encoding:mime-version :dkim-signature; bh=s8Xbh4eEJvsR4o/4ZKuEBgRF74YzTUn65k4qyZQHKZg=; fh=cHUtfDsv43aTBkDqsSbh57A35XpbrYDNtUfShZcGR+c=; b=k0eoEgWq0N+kbyIZv3EyW+qJqc8MnmHcgSO4vszV75wCgn/MOAPCW96c4qUuSkl1aW n0kKP/xw52TIeRWbJK2ammbCOEfLpqriTyI8CJr4+zZ6smz/94xArE8RTHLUFD9I2TXe p8vxkKACQB+E/EJfZ+lSYEiWP79ytiOBM67gtfImVSqys4bl51TpBNyF4sEPROKfwMQP G1L47oGLF1tyMgi2Zdp7PBwsteF76p62YgudOs2/EgKTZr7JBOtL342JnxXJYfsg+Mre nIqpq2OZfLlsezsv5bMcorp4buP6CL2aeCLDNqXrTrmQO2bY4tyzayvwvDeefJMNfGOm kuvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VsfbgYWc; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d11-20020aa7d68b000000b0052542edc0afsi9515794edr.256.2023.08.23.15.32.15; Wed, 23 Aug 2023 15:32:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=@kernel.org header.s=k20201202 header.b=VsfbgYWc; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233931AbjHWLJr (ORCPT + 55 others); Wed, 23 Aug 2023 07:09:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234230AbjHWLJp (ORCPT ); Wed, 23 Aug 2023 07:09:45 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D579E7B for ; Wed, 23 Aug 2023 04:09:34 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 922D764662 for ; Wed, 23 Aug 2023 11:09:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E0029C433C7; Wed, 23 Aug 2023 11:09:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692788972; bh=23rZR4jmO1hyifr9383JMA9axpg8gPtQQ+VkqJ0uvLM=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=VsfbgYWcxbdUuznmSKKJot7oc6K8i1kg45UhwkHIrHlwHikzh/IT4W3VZe2O7vaHd Ew6/29oMiIoMkQW2PWQGBqN2TXQO6SVO6Ivy8oe4Jv+bVeLNGIWJsFJxn11A4FvJ5o 6y4BUvElI184293kZqeIYLbOA9UQABRlXBUMGREuV0lEfNaCnESj+Xj1TvRHzhgfqj HtjqVuwuES6yMVRSOMEtwT1RByKEDd871v9aLdBng6mvqK9Se1px0LsBHjjIvUotAb SYfgTpedzF7dRO+KJ5CKRsKTRL+ls5aSO0L41ULKVj3rZrBAU1ZsAv3/tVwuO+U+lP oOLJirpLmpdpQ== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH -next] wifi: wfx: Use devm_kmemdup to replace devm_kmalloc + memcpy From: Kalle Valo In-Reply-To: <20230810114939.2104013-1-lizetao1@huawei.com> References: <20230810114939.2104013-1-lizetao1@huawei.com> To: Li Zetao Cc: , , User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <169278896989.1133515.14881647207176959313.kvalo@kernel.org> Date: Wed, 23 Aug 2023 11:09:31 +0000 (UTC) X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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-wireless@vger.kernel.org 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: Jérôme Pouiller Patch applied to wireless-next.git, thanks. eaa8023e9bb3 wifi: wfx: Use devm_kmemdup to replace devm_kmalloc + memcpy -- https://patchwork.kernel.org/project/linux-wireless/patch/20230810114939.2104013-1-lizetao1@huawei.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches