diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2015-11-28 15:00:37 +0100 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2015-12-24 00:17:32 -0500 |
commit | c419874c443a21ab75708bf0ddb74f2b0cf3c545 (patch) | |
tree | d01374f5cbf9a40356c99b2c0c17ade0f40ec129 /drivers/infiniband/hw/nes/nes_cm.c | |
parent | 88115fe7a0e45a200a6ae9d07e424c62fb13621a (diff) | |
download | linux-c419874c443a21ab75708bf0ddb74f2b0cf3c545.tar.gz |
RDMA/nes: constify nes_cm_ops structure
The nes_cm_ops structure is never modified, so declare it as const.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/nes/nes_cm.c')
-rw-r--r-- | drivers/infiniband/hw/nes/nes_cm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/nes/nes_cm.c b/drivers/infiniband/hw/nes/nes_cm.c index bc37adbae2a9..179490d74bfd 100644 --- a/drivers/infiniband/hw/nes/nes_cm.c +++ b/drivers/infiniband/hw/nes/nes_cm.c @@ -134,7 +134,7 @@ static void record_ird_ord(struct nes_cm_node *, u16, u16); /* External CM API Interface */ /* instance of function pointers for client API */ /* set address of this instance to cm_core->cm_ops at cm_core alloc */ -static struct nes_cm_ops nes_cm_api = { +static const struct nes_cm_ops nes_cm_api = { mini_cm_accelerated, mini_cm_listen, mini_cm_del_listen, |