提交 b90575ce 编写于 作者: Z Zhu Yanjun 提交者: Jason Gunthorpe

IB/rxe: avoid unnecessary NULL check

Before goto err2, the variable qp is checked. So it is not necessary
to check qp in label err2.
Signed-off-by: NZhu Yanjun <yanjun.zhu@oracle.com>
Reviewed-by: NLeon Romanovsky <leonro@mellanox.com>
Reviewed-by: NYuval Shaia <yuval.shaia@oracle.com>
Signed-off-by: NJason Gunthorpe <jgg@mellanox.com>
上级 92cf36ee
...@@ -256,8 +256,7 @@ static int hdr_check(struct rxe_pkt_info *pkt) ...@@ -256,8 +256,7 @@ static int hdr_check(struct rxe_pkt_info *pkt)
return 0; return 0;
err2: err2:
if (qp) rxe_drop_ref(qp);
rxe_drop_ref(qp);
err1: err1:
return -EINVAL; return -EINVAL;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册