diff --git a/drivers/infiniband/core/cache.c b/drivers/infiniband/core/cache.c index 5b9416af825bf54dce3ad070ad7a8be6b8fd785f..4f77043424104fdb121b32fb92d2c2a6f8101399 100644 --- a/drivers/infiniband/core/cache.c +++ b/drivers/infiniband/core/cache.c @@ -116,15 +116,13 @@ struct ib_gid_table { static void dispatch_gid_change_event(struct ib_device *ib_dev, u8 port) { - if (rdma_cap_roce_gid_table(ib_dev, port)) { - struct ib_event event; + struct ib_event event; - event.device = ib_dev; - event.element.port_num = port; - event.event = IB_EVENT_GID_CHANGE; + event.device = ib_dev; + event.element.port_num = port; + event.event = IB_EVENT_GID_CHANGE; - ib_dispatch_event(&event); - } + ib_dispatch_event(&event); } static const char * const gid_type_str[] = {