# Re: \[PATCH\] RDMA/cxgb4: Fix missing error code in create\_qp()

- From: Jason Gunthorpe \<jgg@nvidia.com\>
- Date: 2021-06-04 15:04:00 
- List: linux-rdma
- Page: https://ratatoskr.run/linux-rdma/2021/06/1402731
- Thread: https://ratatoskr.run/linux-rdma/2021/06/1398460/t.md

```text
On Tue, Jun 01, 2021 at 07:07:49PM +0800, Jiapeng Chong wrote:
> The error code is missing in this code scenario, add the error code
> '-EINVAL' to the return value 'ret'.
> 
> Eliminate the follow smatch warning:
> 
> drivers/infiniband/hw/cxgb4/qp.c:298 create_qp() warn: missing error
> code 'ret'.
> 
> Reported-by: Abaci Robot <redacted>
> Signed-off-by: Jiapeng Chong <redacted>
> ---
>  drivers/infiniband/hw/cxgb4/qp.c | 1 +
>  1 file changed, 1 insertion(+)

Applied to for-next, thanks

Jason
```
