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.h | |
parent | 88115fe7a0e45a200a6ae9d07e424c62fb13621a (diff) |
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.h')
-rw-r--r-- | drivers/infiniband/hw/nes/nes_cm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/nes/nes_cm.h b/drivers/infiniband/hw/nes/nes_cm.h index 32a6420c2940..147c2c884227 100644 --- a/drivers/infiniband/hw/nes/nes_cm.h +++ b/drivers/infiniband/hw/nes/nes_cm.h @@ -423,7 +423,7 @@ struct nes_cm_core { struct timer_list tcp_timer; - struct nes_cm_ops *api; + const struct nes_cm_ops *api; int (*post_event)(struct nes_cm_event *event); atomic_t events_posted; |