IB/rxe: Remove unneeded check
authorYuval Shaia <yuval.shaia@oracle.com>
Fri, 21 Jul 2017 19:20:50 +0000 (22:20 +0300)
committerDoug Ledford <dledford@redhat.com>
Fri, 18 Aug 2017 18:01:10 +0000 (14:01 -0400)
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>
drivers/infiniband/sw/rxe/rxe_av.c

index f8172eb993cc4923a176a1d255da7a724bca674b..1cc9e2e1365d6bc1445fef6b243d66cc414699d1 100644 (file)
@@ -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) {