IB/rxe: remove redudant qpn check
authorZhu Yanjun <yanjun.zhu@oracle.com>
Sun, 19 Aug 2018 07:04:01 +0000 (15:04 +0800)
committerDoug Ledford <dledford@redhat.com>
Thu, 30 Aug 2018 20:31:50 +0000 (16:31 -0400)
commit8b7b59d030cc0d34b83b0c556bb6365c9ae6ba77
tree80b7464c2fe20ca6594ca3711e657142483550d4
parentd3c04a3a6870a4b96ee213d99b4f4ca723e64025
IB/rxe: remove redudant qpn check

In the commit 536ca245c512 ("IB/rxe: Drop QP0 silently"), if qpn is
zero, the function directly returns. So in the following function,
it is not necessary to check qpn. The qpn check in the function
check_keys is removed.

Fixes: 536ca245c512 ("IB/rxe: Drop QP0 silently")
CC: Srinivas Eeda <srinivas.eeda@oracle.com>
CC: Junxiao Bi <junxiao.bi@oracle.com>
Signed-off-by: Zhu Yanjun <yanjun.zhu@oracle.com>
Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/sw/rxe/rxe_recv.c