Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 660b1de1 authored by Yuval Shaia's avatar Yuval Shaia Committed by Doug Ledford
Browse files

IB/rxe: Remove unneeded check



Port validation is performed in ib_core, no need to duplicate it here.

Signed-off-by: default avatarYuval Shaia <yuval.shaia@oracle.com>
Reviewed-by: default avatarLeon Romanovsky <leonro@mellanox.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent 8b62cbd1
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -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) {