Re: [PATCH][next] RDMA/mlx5: remove redundant check on err on return expression
From: Leon Romanovsky
Date: Thu Jul 17 2025 - 08:20:25 EST
On Thu, 17 Jul 2025 12:21:08 +0100, Colin Ian King wrote:
> Currently all paths that set err and then check it for an error
> perform immediate returns, hence err always zero at the end of
> the function _mlx5r_umr_zap_mkey. The return expression
> err ? err : nblocks has a redundant check on the err since err
> is always zero, so just return nblocks instead.
>
>
> [...]
Applied, thanks!
[1/1] RDMA/mlx5: remove redundant check on err on return expression
https://git.kernel.org/rdma/rdma/c/aee80e6ffc5878
Best regards,
--
Leon Romanovsky <leon@xxxxxxxxxx>