Re: [PATCH 4/4] IB: Remove redundant error check

From: Dan Carpenter
Date: Sat May 17 2014 - 16:27:01 EST


On Sat, May 17, 2014 at 08:23:00PM +0200, Peter Senna Tschudin wrote:
> ---
> drivers/infiniband/hw/ocrdma/ocrdma_hw.c | 6 +++---
> drivers/infiniband/ulp/srpt/ib_srpt.c | 8 ++++----
> 2 files changed, 7 insertions(+), 7 deletions(-)
>
> diff --git a/drivers/infiniband/hw/ocrdma/ocrdma_hw.c b/drivers/infiniband/hw/ocrdma/ocrdma_hw.c
> index 3bbf201..f085a51 100644
> --- a/drivers/infiniband/hw/ocrdma/ocrdma_hw.c
> +++ b/drivers/infiniband/hw/ocrdma/ocrdma_hw.c
> @@ -1839,11 +1839,11 @@ int ocrdma_reg_mr(struct ocrdma_dev *dev,
>
> status = ocrdma_mbx_reg_mr_cont(dev, hwmr, cur_pbl_cnt,
> pbl_offset, last);
> - if (status)
> + if (status) {
> + pr_err("%s() err. status=%d\n", __func__, status);
> break;

return status;


> + }
> }
> - if (status)
> - pr_err("%s() err. status=%d\n", __func__, status);
>
> return status;

return 0;

> }

regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/