]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5c1edac54b294cb9be3fa75af900bff64c648e34
tree80b7464c2fe20ca6594ca3711e657142483550d4
parent4a39484c4828c9987f5a96b0a8a1af1e41636c50
IB/rxe: remove redudant qpn check

In the commit 0461c04e323e ("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: 0461c04e323e ("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