diff options
author | Lin Zhang <xiaolou4617@gmail.com> | 2017-10-06 01:40:35 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-07 23:15:08 +0100 |
commit | 548ec114705bb8f0879a0da12abec17f17a7cc26 (patch) | |
tree | 2109c7f34d7bea667c3a0540470dbf644016e0bd /net/phonet/pep.c | |
parent | 64237470ddf97b63155fbd272c9e743e01d5f514 (diff) |
net: phonet: mark phonet_protocol as const
The phonet_protocol structs don't need to be written by anyone and
so can be marked as const.
Signed-off-by: Lin Zhang <xiaolou4617@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/phonet/pep.c')
-rw-r--r-- | net/phonet/pep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/phonet/pep.c b/net/phonet/pep.c index e81537991ddf..9fc76b19cd3c 100644 --- a/net/phonet/pep.c +++ b/net/phonet/pep.c @@ -1351,7 +1351,7 @@ static struct proto pep_proto = { .name = "PNPIPE", }; -static struct phonet_protocol pep_pn_proto = { +static const struct phonet_protocol pep_pn_proto = { .ops = &phonet_stream_ops, .prot = &pep_proto, .sock_type = SOCK_SEQPACKET, |