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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 78F7AC4332F for ; Mon, 25 Oct 2021 06:31:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 536C660C4A for ; Mon, 25 Oct 2021 06:31:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231233AbhJYGdd (ORCPT ); Mon, 25 Oct 2021 02:33:33 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:48869 "EHLO out5-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230369AbhJYGdb (ORCPT ); Mon, 25 Oct 2021 02:33:31 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 4419B5C0178; Mon, 25 Oct 2021 02:31:09 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 25 Oct 2021 02:31:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=XH3xdt bLhapmmW0JYmN5pD0fjj0gtqEc7lDkeWFuh3o=; b=Yu51eIJfHMCYnk01d/iAoa 724YShrQPbLtKdi0ukgyahPHDyYPYDQbjQ3r0wG9B90G/xYbi9KPIJ9i5Nf1ibWa TfwCz4el+keN0w/cBANLpr2mUgW9lGEIdUVy7n0vGJAyo7U6FGRoNRXYL3hEa14D h/T8JzCoi/9QsR5PL+j/gM9m64r4EhepbBQN6t/YZ3e6bA4iJAMg548HX98exKQU fc6yiuhKxOh+gmzuhR2/VKplv9nPzDe/jx2c0qAUme4UsWtdXQXVOkOC62gpRFjB 3VbacqHY5xLUWqm7dns1kFpGbyzMV4w7ZMDbtCms8Q2OoaiU46pqbeDPbJ87wCoQ == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvdefgedguddtiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvuffkfhggtggujgesthdtredttddtvdenucfhrhhomhepkfguohcu ufgthhhimhhmvghluceoihguohhstghhsehiughoshgthhdrohhrgheqnecuggftrfgrth htvghrnheptdffkeekfeduffevgeeujeffjefhtefgueeugfevtdeiheduueeukefhudeh leetnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepih guohhstghhsehiughoshgthhdrohhrgh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 25 Oct 2021 02:31:07 -0400 (EDT) Date: Mon, 25 Oct 2021 09:31:03 +0300 From: Ido Schimmel To: Christophe JAILLET Cc: jiri@nvidia.com, idosch@nvidia.com, davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH] mlxsw: spectrum: Use 'bitmap_zalloc()' when applicable Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Oct 24, 2021 at 09:17:51PM +0200, Christophe JAILLET wrote: > Use 'bitmap_zalloc()' to simplify code, improve the semantic and avoid > some open-coded arithmetic in allocator arguments. > > Also change the corresponding 'kfree()' into 'bitmap_free()' to keep > consistency. > > Signed-off-by: Christophe JAILLET For net-next: Reviewed-by: Ido Schimmel Thanks