summaryrefslogtreecommitdiffstats
path: root/net/atm/lec.c
diff options
context:
space:
mode:
authorBhumika Goyal2017-08-09 11:32:08 +0200
committerDavid S. Miller2017-08-10 07:43:50 +0200
commit800bb47e71cac00e98c822919174bb2e1d2e8071 (patch)
tree97de779c1497147d277e37bdb825b41ecf2744f1 /net/atm/lec.c
parentatm: make atmdev_ops const (diff)
downloadkernel-qcow2-linux-800bb47e71cac00e98c822919174bb2e1d2e8071.tar.gz
kernel-qcow2-linux-800bb47e71cac00e98c822919174bb2e1d2e8071.tar.xz
kernel-qcow2-linux-800bb47e71cac00e98c822919174bb2e1d2e8071.zip
net: atm: make atmdev_ops const
Make these const as they are only stored in the ops field of a atm_dev structure, which is const. Done using Coccinelle. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/atm/lec.c')
-rw-r--r--net/atm/lec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/atm/lec.c b/net/atm/lec.c
index 093fe8707731..a3d93a1bb133 100644
--- a/net/atm/lec.c
+++ b/net/atm/lec.c
@@ -486,7 +486,7 @@ static void lec_atm_close(struct atm_vcc *vcc)
module_put(THIS_MODULE);
}
-static struct atmdev_ops lecdev_ops = {
+static const struct atmdev_ops lecdev_ops = {
.close = lec_atm_close,
.send = lec_atm_send
};