From: Yuval Shaia Date: Fri, 21 Jul 2017 19:20:50 +0000 (+0300) Subject: IB/rxe: Remove unneeded check X-Git-Tag: v4.14-rc2~9^2~139^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=660b1de13ce8a56cf8c1700774a962e36222c0f9;p=platform%2Fkernel%2Flinux-exynos.git IB/rxe: Remove unneeded check Port validation is performed in ib_core, no need to duplicate it here. Signed-off-by: Yuval Shaia Reviewed-by: Leon Romanovsky Signed-off-by: Doug Ledford --- diff --git a/drivers/infiniband/sw/rxe/rxe_av.c b/drivers/infiniband/sw/rxe/rxe_av.c index f8172eb9..1cc9e2e 100644 --- a/drivers/infiniband/sw/rxe/rxe_av.c +++ b/drivers/infiniband/sw/rxe/rxe_av.c @@ -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) {