On Mon, Nov 09, 2015 at 06:30:56PM +0200, Matan Barak wrote: > + > + if (uhw->outlen) { > + err = ib_copy_to_udata(uhw, &resp, resp.response_length); > + if (err) > + return err; > + } > + > return 0; What do you think about to rewrite this part of code to be something like that? + int ret = 0; ..... + if (uhw->outlen) + ret = ib_copy_to_udata(uhw, &resp, resp.response_length); + return ret; -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
- [PATCH for-next 0/4] User-space time-stamping support fo... Matan Barak
- [PATCH for-next 3/4] IB/mlx5: Add support querying ... Matan Barak
- Re: [PATCH for-next 3/4] IB/mlx5: Add support q... Eli Cohen
- Re: [PATCH for-next 3/4] IB/mlx5: Add support q... Leon Romanovsky
- Re: [PATCH for-next 3/4] IB/mlx5: Add suppo... Matan Barak
- [PATCH for-next 1/4] IB/mlx5: Add create_cq extende... Matan Barak
- Re: [PATCH for-next 1/4] IB/mlx5: Add create_cq... Eli Cohen
- Re: [PATCH for-next 1/4] IB/mlx5: Add create_cq... Eli Cohen
- Re: [PATCH for-next 1/4] IB/mlx5: Add create_cq... Jason Gunthorpe
- Re: [PATCH for-next 1/4] IB/mlx5: Add creat... Matan Barak
- Re: [PATCH for-next 1/4] IB/mlx5: Add create_cq... Jason Gunthorpe
- Re: [PATCH for-next 1/4] IB/mlx5: Add creat... Matan Barak
- Re: [PATCH for-next 1/4] IB/mlx5: Add create_cq... Christoph Hellwig
- Re: [PATCH for-next 1/4] IB/mlx5: Add creat... Matan Barak