Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2674942pxa; Mon, 17 Aug 2020 16:16:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLILJ1Y+CL91aegu0njVWXwPtxoNR2iijEQqt9pE5kwZdxbwHQ/MfK9moEfPn4TjR2Y6jf X-Received: by 2002:a17:906:3b8d:: with SMTP id u13mr17028780ejf.383.1597706174162; Mon, 17 Aug 2020 16:16:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597706174; cv=none; d=google.com; s=arc-20160816; b=oMmxtRcl4gbVF4osJBeie9E1g4B4lu4Ctw343hl6JsgAmVKSBvy73StROA1nEfSVFA dRX5kWdbEsLFNVK70w+x2mVtSk2e1Ezp8iPENl43uxSKAosVk49IP+CB939JV2p6OWyR 6Hi2/IQR3VLT38FfgtD0pu8N6yNOH4qqDvQGFhy0+xkkUs6A3CsWcdvodgmu8clYDvzR GQV7/veDM1wGtgh/qfckHKXBCuzdPlZlRRzDtuXc4RzWgGia7yI41W1abYdzri/lvPC3 k3EyujlxOnxZFDhS3RBNHZSkI+XamHY7Gb6SGDD5MyJI70Og/kIj/Bgm4GAVTlvPiFDu 4qig== 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=GeHx3Xy6sB822cpt0zZ08viB0OGFRL+9UNRuY5hPP9A=; b=wf53lFZkX5DzMQNPjGzovXRbvprz2qaX1w0RFjVkiHXYkdJxAmKWg6HjM8x4Yhz7/h WjvXIOKpueSUD27qrelmBWofcGgDkRDIwdbzqsTZTRB7B/jmhcPnXmWboLsqCv6XCcFW P9reFHxR0WDV9ou1V+e3l1oItCABHO2jpp247w4sCWXfIH1Hz55SXyhKLVE93MgzT771 1wI4Gg9qdUhORoKzlTGyWPgIbXSqXJuI4kt43Ytowe477iVR/lHblQuu1NwQt/+o7wHM vmqR9GR9ePhlaTg/0wgYOvGhblvWMmVPoWNTMNKvGqP+5SthQ/ImJxZneeB5fhHPU5xJ XhzQ== 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 u25si11912836ejj.483.2020.08.17.16.15.50; Mon, 17 Aug 2020 16:16:14 -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 S1729997AbgHQWI5 (ORCPT + 99 others); Mon, 17 Aug 2020 18:08:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728426AbgHQWI5 (ORCPT ); Mon, 17 Aug 2020 18:08:57 -0400 Received: from shards.monkeyblade.net (shards.monkeyblade.net [IPv6:2620:137:e000::1:9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20A3CC061389; Mon, 17 Aug 2020 15:08:57 -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 745D215D7AE97; Mon, 17 Aug 2020 14:52:10 -0700 (PDT) Date: Mon, 17 Aug 2020 15:08:55 -0700 (PDT) Message-Id: <20200817.150855.1000388232484331253.davem@davemloft.net> To: vulab@iscas.ac.cn Cc: sgoutham@marvell.com, gakula@marvell.com, sbhatta@marvell.com, hkelam@marvell.com, kuba@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] otx2_common: Use devm_kcalloc() in otx2_config_npa() From: David Miller In-Reply-To: <20200817020413.9804-1-vulab@iscas.ac.cn> References: <20200817020413.9804-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]); Mon, 17 Aug 2020 14:52:10 -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: Mon, 17 Aug 2020 02:04:13 +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.