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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 02E48C636CD for ; Wed, 8 Feb 2023 00:38:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230072AbjBHAiw (ORCPT ); Tue, 7 Feb 2023 19:38:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230048AbjBHAil (ORCPT ); Tue, 7 Feb 2023 19:38:41 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 847494109A for ; Tue, 7 Feb 2023 16:38:07 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 0C1EDB81B84 for ; Wed, 8 Feb 2023 00:37:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9FC9AC433EF; Wed, 8 Feb 2023 00:37:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1675816648; bh=Zbz/A5kHKHJqS2EkNP7ZxzlT1AgAZi4b0Sq94NlOHto=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EegGAiSUhq2nBXp6fg5t+lvTV4Ri7WUSjLmuJSrqIGS7+35YVyq5k/Tz2XIQLnpop nnPHDVzkINUXUOsYgwxEEP5e8HYhxLwspfz5KTw93ZAsOJBnE1y5kbbydEFtGmThsh cA6JSvx/O8zOl8/xB99U5xNbS00+AxnUkqaqSd1SAgIZg4EVt7ILVjH8kQ+ELH0J5w 2duILmKwuzZBerNxi0gYIXK/wYzrfE6i0oO/tWx3hLVVgPAO6O4OAHnOeorP7mOAPt A3EWTBLfePMM2VIWT+ffhfUdZ9xgR/IPAinxrwtaYREiyHW4bsFdqtpMINLyEdcx+8 eYTwhy3CLXLig== From: Saeed Mahameed To: "David S. Miller" , Jakub Kicinski , Paolo Abeni , Eric Dumazet Cc: Saeed Mahameed , netdev@vger.kernel.org, Tariq Toukan , Roi Dayan , Maor Dickman Subject: [net-next 11/15] net/mlx5: fs, Remove redundant assignment of size Date: Tue, 7 Feb 2023 16:37:08 -0800 Message-Id: <20230208003712.68386-12-saeed@kernel.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230208003712.68386-1-saeed@kernel.org> References: <20230208003712.68386-1-saeed@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Roi Dayan size is being reassigned in the line after. remove the redundant assignment. Signed-off-by: Roi Dayan Reviewed-by: Maor Dickman Signed-off-by: Saeed Mahameed --- drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c b/drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c index e6874298ba92..374c17445e54 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c @@ -272,8 +272,6 @@ static int mlx5_cmd_create_flow_table(struct mlx5_flow_root_namespace *ns, unsigned int size; int err; - if (ft_attr->max_fte != POOL_NEXT_SIZE) - size = roundup_pow_of_two(ft_attr->max_fte); size = mlx5_ft_pool_get_avail_sz(dev, ft->type, ft_attr->max_fte); if (!size) return -ENOSPC; -- 2.39.1