]> git.baikalelectronics.ru Git - kernel.git/commit
IB/rxe: avoid unnecessary NULL check
authorZhu Yanjun <yanjun.zhu@oracle.com>
Thu, 14 Jun 2018 09:45:42 +0000 (05:45 -0400)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 18 Jun 2018 19:16:30 +0000 (13:16 -0600)
commit6b927539f9a9151c2ec957684998adf49c2aa2c5
tree5a297a96e7c0f1cce7a25b753b42122087024861
parent44201744079526c10926feb5b8ba31640d92678b
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: Zhu Yanjun <yanjun.zhu@oracle.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/sw/rxe/rxe_recv.c