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>
这个提交包含在:
Julia Lawall
2015-11-28 15:00:37 +01:00
提交者 Doug Ledford
父节点 88115fe7a0
当前提交 c419874c44
修改 2 个文件,包含 2 行新增2 行删除

查看文件

@@ -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;