Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1551621ybg; Thu, 11 Jun 2020 12:49:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAG9rOKDopH6gwBblKNkIzCdwG+taoZhzXInzJw6qnla/LJKZH0Xr4KlVmnNYpI4yh6VNd X-Received: by 2002:a17:906:480f:: with SMTP id w15mr9840806ejq.430.1591904965182; Thu, 11 Jun 2020 12:49:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591904965; cv=none; d=google.com; s=arc-20160816; b=uLcZ75cDELclqhSweU98YcVZbeW6IyTe/LqQaB2CO60bIKnd4XD/5BU/f/SGs8Z1tg L1RWrbJyG9f3+AaQe5LRMfUm++8BFubaQ6O0aLvImvn3/PeCioDXRNUIe8/wvYtD4mNP oa8qUCj5j1LX4pXenHvDDKFEmDUUM8FKFlsemhJCGUZToVr7QdQ/ga+q0t1h517qQOMP actmyYFY6HzxilsrjMMW4nAv61BIN+oJ2JaQlHAa+NaLyiJkBUlsUB/sxRS3cneYd59C UmYN6+4i/1IzHtnpJ728KQ03NqUpioM62GrpcvG8TS5DixGafzOvLtMrAClhw1a5i34t kR7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=lGbEAnfNF4i79RPjJk3BGZweHl6FnYMcaojurSVZm1I=; b=plCo6CD9hYyq1kczCmddgfHP4yiNrq2IoSSppDQ4GsagjuNqCtSOtuCwGdFhUaUHHo IcEue4qmk8TMeoDJq8tFqqG2VMTPTT42tn074PLKJOX/xrPdfiFVI5iB7K1iKSHpF7MU /epEuH02+56g871po985ivWy5AB2P59wq5MMML9dEkcegIoo7eB0BijafaFr8hFkFBxY +K7DrVi60N4EUPqOBa3Ltikek4oXIJeMWT1j8jRa9CLaTN9nxHyeSC78fvFKCclPB9+l 3ysZ8tR8JQgAGkj+61GUrI9GvaxZfT7l9u8ZSInzSSVJpgzKt0PwhejqktLJcP0yqc/7 erPw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d20si2256760edq.97.2020.06.11.12.49.02; Thu, 11 Jun 2020 12:49:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726664AbgFKTl3 (ORCPT + 99 others); Thu, 11 Jun 2020 15:41:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725824AbgFKTl3 (ORCPT ); Thu, 11 Jun 2020 15:41:29 -0400 Received: from shards.monkeyblade.net (shards.monkeyblade.net [IPv6:2620:137:e000::1:9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0AC2C08C5C1; Thu, 11 Jun 2020 12:41:28 -0700 (PDT) Received: from localhost (unknown [IPv6:2601:601:9f00:477::3d5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id CB85F128646D9; Thu, 11 Jun 2020 12:41:26 -0700 (PDT) Date: Thu, 11 Jun 2020 12:41:23 -0700 (PDT) Message-Id: <20200611.124123.2172344882681894046.davem@davemloft.net> To: vulab@iscas.ac.cn Cc: ioana.ciornei@nxp.com, ruxandra.radulescu@nxp.com, kuba@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drivers: dpaa2: Use devm_kcalloc() in setup_dpni() From: David Miller In-Reply-To: <20200611024520.630-1-vulab@iscas.ac.cn> References: <20200611024520.630-1-vulab@iscas.ac.cn> X-Mailer: Mew version 6.8 on Emacs 26.3 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Thu, 11 Jun 2020 12:41:27 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Xu Wang Date: Thu, 11 Jun 2020 02:45:20 +0000 > A multiplication for the size determination of a memory allocation > indicated that an array data structure should be processed. > Thus use the corresponding function "devm_kcalloc". > > Signed-off-by: Xu Wang Applied, thanks.