summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRikard Falkeborn <rikard.falkeborn@gmail.com>2020-09-27 23:10:42 +0200
committerDavid S. Miller <davem@davemloft.net>2020-09-28 16:03:30 -0700
commit7028977965f146570c88125928cc5ed9781d0477 (patch)
tree45f1ec136a6bfb648d01d064cbf40debf714e818
parente5f7e211b6aa19d5398abe3d91a508bf7f06ed54 (diff)
downloadlinux-7028977965f146570c88125928cc5ed9781d0477.tar.gz
linux-7028977965f146570c88125928cc5ed9781d0477.tar.bz2
linux-7028977965f146570c88125928cc5ed9781d0477.zip
atm: atmtcp: Constify atmtcp_v_dev_ops
The only usage of atmtcp_v_dev_ops is to pass its address to atm_dev_register() which takes a pointer to const, and comparing its address to another address, which does not modify it. Make it const to allow the compiler to put it in read-only memory. Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/atm/atmtcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/atm/atmtcp.c b/drivers/atm/atmtcp.c
index 7f814da3c2d0..96bea1ab1ecc 100644
--- a/drivers/atm/atmtcp.c
+++ b/drivers/atm/atmtcp.c
@@ -327,7 +327,7 @@ done:
*/
-static struct atmdev_ops atmtcp_v_dev_ops = {
+static const struct atmdev_ops atmtcp_v_dev_ops = {
.dev_close = atmtcp_v_dev_close,
.open = atmtcp_v_open,
.close = atmtcp_v_close,