diff options
author | Moni Shoua <monis@mellanox.com> | 2015-06-10 12:13:32 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2015-06-10 23:54:34 -0400 |
commit | 9247a8eba62058dba6d018fca4e33332e4c535e8 (patch) | |
tree | 087b61ee98fed7fe3fb7f6f6d53bfc1c6e2a62b5 /drivers/infiniband/core/sa_query.c | |
parent | db75d0547cf230a433fab4d68630849532f2c8a0 (diff) | |
download | talos-obmc-linux-9247a8eba62058dba6d018fca4e33332e4c535e8.tar.gz talos-obmc-linux-9247a8eba62058dba6d018fca4e33332e4c535e8.zip |
IB/core: Don't warn on no SA support in event handler
Registering an event handler is done for a device. This device may have
one RoCE port (no SA cap) and one InfiniBand port (has SA cap).
Therefore, warning from the event handler about a specific port that
doesn't have SA cap is correct but pollutes the kernel log without a
need.
Signed-off-by: Moni Shoua <monis@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/core/sa_query.c')
-rw-r--r-- | drivers/infiniband/core/sa_query.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/core/sa_query.c b/drivers/infiniband/core/sa_query.c index 7f7c8c9fa92c..3d0b7b2f5f61 100644 --- a/drivers/infiniband/core/sa_query.c +++ b/drivers/infiniband/core/sa_query.c @@ -450,7 +450,7 @@ static void ib_sa_event(struct ib_event_handler *handler, struct ib_event *event struct ib_sa_port *port = &sa_dev->port[event->element.port_num - sa_dev->start_port]; - if (WARN_ON(!rdma_cap_ib_sa(handler->device, port->port_num))) + if (!rdma_cap_ib_sa(handler->device, port->port_num)) return; spin_lock_irqsave(&port->ah_lock, flags); |