summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/sw
diff options
context:
space:
mode:
authorYuval Shaia <yuval.shaia@oracle.com>2017-07-21 21:20:50 +0200
committerDoug Ledford <dledford@redhat.com>2017-08-18 20:01:10 +0200
commit660b1de13ce8a56cf8c1700774a962e36222c0f9 (patch)
tree55879dc203f818782ada9f3bf6637f7a541d7a44 /drivers/infiniband/sw
parentIB/rxe: Convert pr_info to pr_warn (diff)
downloadlinux-660b1de13ce8a56cf8c1700774a962e36222c0f9.tar.xz
linux-660b1de13ce8a56cf8c1700774a962e36222c0f9.zip
IB/rxe: Remove unneeded check
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>
Diffstat (limited to 'drivers/infiniband/sw')
-rw-r--r--drivers/infiniband/sw/rxe/rxe_av.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/infiniband/sw/rxe/rxe_av.c b/drivers/infiniband/sw/rxe/rxe_av.c
index f8172eb993cc..1cc9e2e1365d 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) {