Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b90575ce authored by Zhu Yanjun's avatar Zhu Yanjun Committed by Jason Gunthorpe
Browse files

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: default avatarZhu Yanjun <yanjun.zhu@oracle.com>
Reviewed-by: default avatarLeon Romanovsky <leonro@mellanox.com>
Reviewed-by: default avatarYuval Shaia <yuval.shaia@oracle.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent 92cf36ee
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -256,7 +256,6 @@ static int hdr_check(struct rxe_pkt_info *pkt)
	return 0;

err2:
	if (qp)
	rxe_drop_ref(qp);
err1:
	return -EINVAL;