diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-08-09 05:32:08 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-10 01:43:50 -0400 |
commit | 800bb47e71cac00e98c822919174bb2e1d2e8071 (patch) | |
tree | 97de779c1497147d277e37bdb825b41ecf2744f1 /net/atm/mpc.c | |
parent | 46c4b7a5694ccfdc2659fc8beb8736d7fb1c9841 (diff) |
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/mpc.c')
-rw-r--r-- | net/atm/mpc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/atm/mpc.c b/net/atm/mpc.c index 680a4b9095a1..5677147209e8 100644 --- a/net/atm/mpc.c +++ b/net/atm/mpc.c | |||
@@ -779,7 +779,7 @@ static void mpc_push(struct atm_vcc *vcc, struct sk_buff *skb) | |||
779 | netif_rx(new_skb); | 779 | netif_rx(new_skb); |
780 | } | 780 | } |
781 | 781 | ||
782 | static struct atmdev_ops mpc_ops = { /* only send is required */ | 782 | static const struct atmdev_ops mpc_ops = { /* only send is required */ |
783 | .close = mpoad_close, | 783 | .close = mpoad_close, |
784 | .send = msg_from_mpoad | 784 | .send = msg_from_mpoad |
785 | }; | 785 | }; |