OSDN Git Service

IB/rxe: avoid calling WARN_ON_ONCE twice
authorZhu Yanjun <yanjun.zhu@oracle.com>
Thu, 17 May 2018 08:55:22 +0000 (04:55 -0400)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 17 May 2018 15:16:14 +0000 (09:16 -0600)
commitda2f3b286a396928e9ddcb8c9a987597e751aa84
treeb44153806609ea82452a81148609f7a11cc71516
parent5e6e78dbd3b93414ca53af5d51c090878d1c9e5d
IB/rxe: avoid calling WARN_ON_ONCE twice

In the exit branch, WARN_ON_ONCE is called to show stack. So it is
not necessary to call WARN_ON_ONCE before going to exit.

Signed-off-by: Zhu Yanjun <yanjun.zhu@oracle.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/sw/rxe/rxe_comp.c