Skip to content

Commit

Permalink
IB/rxe: Remove unneeded check
Browse files Browse the repository at this point in the history
Port validation is performed in ib_core, no need to duplicate it here.

Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
  • Loading branch information
Yuval Shaia authored and Doug Ledford committed Aug 18, 2017
1 parent 8b62cbd commit 660b1de
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/infiniband/sw/rxe/rxe_av.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@ int rxe_av_chk_attr(struct rxe_dev *rxe, struct rdma_ah_attr *attr)
{
struct rxe_port *port;

if (rdma_ah_get_port_num(attr) != 1) {
pr_info("invalid port_num = %d\n", rdma_ah_get_port_num(attr));
return -EINVAL;
}

port = &rxe->port;

if (rdma_ah_get_ah_flags(attr) & IB_AH_GRH) {
Expand Down

0 comments on commit 660b1de

Please sign in to comment.