From patchwork Fri Jan 8 05:30:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saeed Mahameed X-Patchwork-Id: 12005781 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EEC16C433E9 for ; Fri, 8 Jan 2021 05:32:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AE80F233EE for ; Fri, 8 Jan 2021 05:32:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727729AbhAHFcU (ORCPT ); Fri, 8 Jan 2021 00:32:20 -0500 Received: from mail.kernel.org ([198.145.29.99]:35874 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727714AbhAHFcT (ORCPT ); Fri, 8 Jan 2021 00:32:19 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5429523716; Fri, 8 Jan 2021 05:31:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610083862; bh=RLY82qF651aA8yYnWKLwQFuD9i1A3WESheA1hYF1+2g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Qj/tuy/GD/3VPID8FXolc0wzNE9l1iOoFBgkpJTKYQNCla8qcvNxw8a1DpVkNnbmJ GKj15p6/EwqeJiYZ4GcDfu4Mt4ns64DIxsbqylNRefGRKlhHA+da7vXDQ5rQ84J6Fz jTIM+4ODCTJBTfEmhMU+BaFcDzmkeD5tvfK4sMZ0cYho5kbO0PNYQSydz4Y0ghmhHj PvEV7yMcHfmdbZ/987fUf/S/jjQd3HcBTXL8yiAWDj38qKRGpmf5rWyw3G+pd1w1ym mBev1wsJuszlPAeAba0m/vggrVrOw8P6lxWLdKkamEwBxxPFz/me0a7h6eO3ZyEKC1 iUtlAiB3IgBEA== From: Saeed Mahameed To: "David S. Miller" , Jakub Kicinski Cc: netdev@vger.kernel.org, Tariq Toukan , Huy Nguyen , Saeed Mahameed Subject: [net-next 13/15] net/mlx5e: IPsec, Avoid unreachable return Date: Thu, 7 Jan 2021 21:30:52 -0800 Message-Id: <20210108053054.660499-14-saeed@kernel.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210108053054.660499-1-saeed@kernel.org> References: <20210108053054.660499-1-saeed@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org From: Tariq Toukan Simple code improvement, move default return operation under the #else block. Signed-off-by: Tariq Toukan Reviewed-by: Huy Nguyen Signed-off-by: Saeed Mahameed --- drivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h b/drivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h index 899b98aca0d3..fb89b24deb2b 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h @@ -142,9 +142,9 @@ static inline bool mlx5e_accel_tx_is_ipsec_flow(struct mlx5e_accel_tx_state *sta { #ifdef CONFIG_MLX5_EN_IPSEC return mlx5e_ipsec_is_tx_flow(&state->ipsec); -#endif - +#else return false; +#endif } static inline unsigned int mlx5e_accel_tx_ids_len(struct mlx5e_txqsq *sq,