]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net/mlx5e: IPsec, Avoid unreachable return
authorTariq Toukan <tariqt@nvidia.com>
Tue, 12 Jan 2021 07:05:32 +0000 (23:05 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 13 Jan 2021 23:45:58 +0000 (15:45 -0800)
Simple code improvement, move default return operation under
the #else block.

Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Huy Nguyen <huyn@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h

index 1fae7fab8297e4d2a70f4e58995be88d5de2a1d7..6488098d270064031e1c89ac8b156ddc2f1f7feb 100644 (file)
@@ -144,9 +144,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,